You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Damien Antipa (JIRA)" <ji...@apache.org> on 2014/07/21 14:36:38 UTC

[jira] [Created] (SLING-3776) JsonRendererServlet should provide a way to list children as an array

Damien Antipa created SLING-3776:
------------------------------------

             Summary: 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 is following]



--
This message was sent by Atlassian JIRA
(v6.2#6252)