Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Content fragment as JSON

trc41594544
Level 3
Level 3

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

1 Accepted Solution
Hemant_arora
Correct answer by
Level 8
Level 8

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

View solution in original post

3 Replies
Hemant_arora
Correct answer by
Level 8
Level 8

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

View solution in original post

smacdonald2008
Level 10
Level 10

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

smacdonald2008
Level 10
Level 10

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