Content fragment as JSON | Community
Skip to main content
trc41594544
Level 3
Apr 23, 2018 5:47 PM UTC
Solved

Content fragment as JSON

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.
Hemant_arora
Hemant_aroraAccepted solution
Level 8
Apr 24, 2018 7:26 AM UTC

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

smacdonald2008
Level 10
Apr 24, 2018 6:44 PM UTC

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

Translate
smacdonald2008
Level 10
Apr 24, 2018 6:36 PM UTC

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

Translate
Hemant_arora
Hemant_aroraAccepted solution
Level 8
Apr 24, 2018 7:26 AM UTC

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

Translate