JSON Exporter : AEM 6.3.2 | Community
Skip to main content
Level 2
Jun 22, 2018 11:18 AM UTC
Solved

JSON Exporter : AEM 6.3.2

Hi,

When I try to run the JSON exporter by using help from below path:

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

then, I am not able to get the values in the JSON as shown in the last screenshot on that page as shown below.

Has anyone has any idea about it, to change the value of the type and also how airportOperationalSince, airportNames, ... values getting generated in the JSON; for me it is generating the component node names.

Thanks,

Mayur

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Jun 26, 2018 3:52 PM UTC

Previous reply was on 6.3. However - 6.4 produces this result:

8 replies

subratam2837114
New Participant
Sep 21, 2018 8:42 AM UTC

Hi All,

Through the below URLI can get the Json data ..

http://localhost:4502/content/we-retail/us/en/products/men/shirts.model.json

http://localhost:4502/content/we-retail/us/en/products/men/shirts/jcr:content/root/responsivegrid/contentfragment.model.…

But suppose my Content Fragment is not associated with any Page then how I can get the Json data for the Content Fragment .

like for this below Path:

/content/dam/caas_contentfragment

Thanks and Regards,

Subrata

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
Jun 26, 2018 3:52 PM UTC

Previous reply was on 6.3. However - 6.4 produces this result:

Translate
smacdonald2008
Level 10
Jun 26, 2018 3:48 PM UTC

I am seeing the same results as you when trying this:

JSON Exporter

This does not work as documented: http://localhost:4502/content/we-retail/language-masters/en.model.json

Translate
smacdonald2008
Level 10
Jun 26, 2018 3:43 PM UTC

Translate
smacdonald2008
Level 10
Jun 26, 2018 3:42 PM UTC
Level 2
Jun 25, 2018 3:44 PM UTC

I have used the Sling Model Exporter,

I am able to change the JSON keys for a particular component model json

(model json url - /content/myproject/mypage/jcr:content/par/mycomponent.model.json)

but I am not able to do so in the experience fragment JSON which has been shown in the screenshot attached in my question

(json url - /content/myproject/mypage/jcr:content/root/responsivegrid/experiencefragment.model.json)

Even the @JsonProperty annotation behaves the same as above.

Thanks,

Mayur

Translate
smacdonald2008
Level 10
Jun 22, 2018 4:01 PM UTC
New Participant
Jun 22, 2018 2:44 PM UTC

Use the Annotation @JsonProperty("XYZ")

Example:

@JsonProperty("columnXyz")

public Map<String, Object> getColumn1() {

Map<String, Object> firstColumMap = new LinkedHashMap<>();

..............

return firstColumMap;

}

Translate