Hi Am 21.01.2014 um 20:15 schrieb Buzzterrier <[email protected]>:
> Looking through your source I found the Sling JSON classes and noted that > JSONObject is created using a LinkedHashMap. I am using those now, so that > solves my problem. But I still think a JSONArray is more appropriate. :-) I think we might want to come back to the proposal discussed in [1] and introduce an :order (or such) property listing the order of child resources if appropriate. > The real culprit IMHO is that javascript and the json spec neglected the > order in the first place. JSON serialization is inherently ordered… Actually, as noted in [1], JavaScript does not neglect but explicity states, that there is no order at all. JSON follows suit. Regards Felix [1] http://markmail.org/message/l3shzw2wgrrabo53 > > > > > > -- > View this message in context: > http://apache-sling.73963.n3.nabble.com/Getting-ordered-nodes-tp4030376p4030496.html > Sent from the Sling - Users mailing list archive at Nabble.com.
