Content fragment as JSON | Community
Skip to main content
trc41594544
Level 3
April 23, 2018
Solved

Content fragment as JSON

  • April 23, 2018
  • 3 replies
  • 1935 views

Hi,

I am working on method to get content fragment as JSON in AEM 6.2 SP1. I am unable to find any information that would be helpful to achieve this.

Is there any way that anyone can help with achieving this in 6.2? I just want to call content fragment using .model.json.

Thanks

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 Hemant_arora

You need to write a custom JSON exporter because .model.json is only supported in AEM 6.3. You may try building the project and installing, not sure if its gonna work

https://helpx.adobe.com/experience-manager/6-3/release-notes/json-exporter-dev-fp.html

3 replies

Hemant_arora
Hemant_aroraAccepted solution
Level 8
April 24, 2018

You need to write a custom JSON exporter because .model.json is only supported in AEM 6.3. You may try building the project and installing, not sure if its gonna work

https://helpx.adobe.com/experience-manager/6-3/release-notes/json-exporter-dev-fp.html

smacdonald2008
Level 10
April 24, 2018

What you are using the JSON for? Do you want to view the Content Fragment as JSON for reporting purposes?

smacdonald2008
Level 10
April 24, 2018

Well - if a content fragment is on a page - you can obtain Page information as JSON using the syntax described in this topic:

Obtaining Page Information in JSON Format