[ https://issues.apache.org/jira/browse/SLING-3776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14068480#comment-14068480 ]
Bertrand Delacretaz commented on SLING-3776: -------------------------------------------- See my comment in the pull request, I'll put that patch on top of my list as soon as it includes automated tests ;-) > JsonRendererServlet should provide a way to list children as an array > --------------------------------------------------------------------- > > Key: SLING-3776 > URL: https://issues.apache.org/jira/browse/SLING-3776 > Project: Sling > Issue Type: Improvement > Components: Servlets > Affects Versions: Servlets Get 2.1.8 > Reporter: Damien Antipa > > The default JSON renderer prints all children of a node as another key-value > attribute. But browsers do not respect the order printed in the response of > object attributes (since the standard does not describe this). > In a lot of cases I continue writing my own servlets to print the children as > a json array which respects the order. Imo the default renderer should > provide a selector to change the output and print children in an array. > PR: https://github.com/apache/sling/pull/23 -- This message was sent by Atlassian JIRA (v6.2#6252)