Alexander Klimetschek wrote: > > But I think Carsten's problem is not about the order at all - it's > just that a javascript client library (ExtJS) typically expects arrays > for data and not objects. And it's about JCR properties, which aren't > ordered anyway. Yes, right, Alex - I actually don't care about order :) It's just about array vs objects and the resulting problems (like the resource name etc.)
> Thus I don't think anything should be changed in the default json > output of Sling. For nodes, one can rely on the order in the JSON. I've looked a little bit more into the problem and it seems that a general approach is (unfortunately) not worth it - in some situations it's as easy as my initial proposal but that might only cover 20%. In other situations you need more "transformation" like flatening the hierarchy etc. Carsten -- Carsten Ziegeler [email protected]
