[json-lib-user] JSON to XML - why sort elements?
Brought to you by:
aalmiray
From: <al....@gm...> - 2010-04-29 10:29:13
|
Is there a benefit to sorting the JSON elements before there are added to the XML output file? When using the library I noticed that the sorting causes the order of the elements to change, this can break some XML validation. I am just wondering is there a negative effect that anyone knows of from removing this sorting? XMLSerializer.java Line 940: Object[] names = jsonObject.names() 941: .toArray(); 942: // Arrays.sort( names ); Thanks. |