adobe / aem-guides-wknd

Tutorial Code companion for Getting Started Developing with AEM Sites WKND Tutorial
https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-wknd-tutorial-develop/overview.html
MIT License
282 stars 537 forks source link

Expose page content in JSON format #393

Closed goyalkritika closed 1 year ago

goyalkritika commented 1 year ago

I have a requirement where I need to expose page content in the form of JSON where every component data will be a separate object inside the JSON output.

How can I fetch all components separately in my servlet so that I can then fetch their properties and put them in my output?

P.S. I am not using headless approach because of some limitations. For now, I'm using traditional AEM development.

SachinMali commented 1 year ago

Please use this project for relevant WKND issues and not general AEM development, as suggested earlier there are AEM communities and Adobe Experience Manager Tutorials avenues to learn, discuss, brainstorm it.