Exposing Components in JSON format | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

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