Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!
SOLVED

Exposing Components in JSON format

Avatar

Level 10

Any suggestion how to make components available in json/xml format

1 Accepted Solution

Avatar

Correct answer by
Level 10

You can  view JSON information related to a page component:

http://docs.adobe.com/docs/en/cq/current/developing/pageinfo.html

If you want a component to return JSON data, code it that way. That is - use JSP app logic to encode data as JSON. 

You can develop an AEM Sling Servlet to encode data as JSON too. We have a community article that highlights this use case:

http://helpx.adobe.com/experience-manager/using/custom-sling-servlets.html

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

You can  view JSON information related to a page component:

http://docs.adobe.com/docs/en/cq/current/developing/pageinfo.html

If you want a component to return JSON data, code it that way. That is - use JSP app logic to encode data as JSON. 

You can develop an AEM Sling Servlet to encode data as JSON too. We have a community article that highlights this use case:

http://helpx.adobe.com/experience-manager/using/custom-sling-servlets.html