Expand my Community achievements bar.

SOLVED

Content fragment as JSON

Avatar

Level 4

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

Avatar

Correct answer by
Level 9

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

Avatar

Correct answer by
Level 9

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

Avatar

Level 10

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

Avatar

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