douglascrockford/JSON-java — Issue #37: Preserving insertion order of keys
Author: mombiela
Created: 2011-12-13 07:25:18+00:00
State: open

Hello,

I know that JSON keys are unordered, but this make the transformation from JSON to XML unreliable, especially if you use xsd validation on the result. I suppose that some other formats are affected too.

I think that preserve the insertion order is a good improvement, with little impact on performance.

It should be as easy as replace java.util.HashMap with java.util.LinkedHashMap.

Thank you very much.
Joan