felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-5556) JSONParser does not retain object order
Date Tue, 21 Feb 2017 08:29:44 GMT

    [ https://issues.apache.org/jira/browse/FELIX-5556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15875590#comment-15875590

Carsten Ziegeler commented on FELIX-5556:

I agree with Felix, we should not provide a false hope. If people switch to another library
or serialize/deserialize the ordering might be different, so relying on it is very dangers.
It's a map after all. If you want ordering use an array 

> JSONParser does not retain object order
> ---------------------------------------
>                 Key: FELIX-5556
>                 URL: https://issues.apache.org/jira/browse/FELIX-5556
>             Project: Felix
>          Issue Type: Bug
>          Components: Utils
>    Affects Versions: utils-1.9.0
>            Reporter: Stefan Seifert
>            Assignee: Stefan Seifert
>             Fix For: utils-1.9.2
> the {{JSONParser}} does not retain the order of objects the JSON files it parses. the
order is randomly based on the HashMap implementation used internally.

This message was sent by Atlassian JIRA

View raw message