Hi,

On Thu, Aug 28, 2014 at 12:19 AM, threed <[email protected]> wrote:
> Is there a way to get the JSON of such a folder in array format?..

This was recently added by SLING-3776, but the corresponding Servlets
Get 2.1.10 bundle is not released yet.

curl -u admin:admin  -F jcr:primaryType=sling:orderedFolder
http://localhost:8080/parent
curl -u admin:admin  -X POST http://localhost:8080/parent/child1
curl -u admin:admin  -X POST http://localhost:8080/parent/child2

curl http://localhost:8080/parent.tidy.harray.2.json
{
  "jcr:createdBy": "admin",
  "jcr:created": "Thu Aug 28 2014 18:18:57 GMT+0200",
  "jcr:primaryType": "sling:OrderedFolder"
  ,
  "__children__":[
    {
    "__name__": "child1",
    "jcr:createdBy": "admin",
    "jcr:created": "Thu Aug 28 2014 18:19:39 GMT+0200",
    "jcr:primaryType": "sling:OrderedFolder"
    },
    {
    "__name__": "child2",
    "jcr:createdBy": "admin",
    "jcr:created": "Thu Aug 28 2014 18:19:44 GMT+0200",
    "jcr:primaryType": "sling:OrderedFolder"
    }
  ]}

-Bertrand

Reply via email to