Hi I think the felix parser has the same problem as the json simple, as its unordered for the map structure - which is what we require for Apache Camel tools. They depend on the current order.
So the felix source code could also be "fixed" by copying it over to Apache Camel and change it to use a LinkedHashMap instead of HashMap. On Mon, Jan 28, 2019 at 3:28 PM Guillaume Nodet <[email protected]> wrote: > > We currently have a problem in master with the json-simple-ordered module. > Fwiw (in case people do not recall), this module is located in > tooling/json-simple-ordered and is a copy of > https://github.com/fangyidong/json-simple > which has been modified to include a rejected fix for keeping the order > during parsing / serialization. It's mainly used in: > * the build tools (apt processor / maven plugins / camel-route-parser) > * camel-catalog > * camel-slack > > I think there's no reason to maintain a fork of the package, so I'd rather: > * switch to a different library (there's a very small one in > https://github.com/apache/felix/tree/trunk/utils/src/main/java/org/apache/felix/utils/json > for example) > * keep that one but refactor and change the package name to own it, > removing deprecated methods and such. > > Thoughts ? > -- > ------------------------ > Guillaume Nodet -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
