Expand my Community achievements bar.

SOLVED

JSON Exporter : AEM 6.3.2

Avatar

Level 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.

chlimage_1.png

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

JSON2.png

View solution in original post

8 Replies

Avatar

Level 1

Use the Annotation @JsonProperty("XYZ")

Example:

@JsonProperty("columnXyz")

public Map<String, Object> getColumn1() {

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

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

return firstColumMap;

}

Avatar

Level 2

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

Avatar

Level 10

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

Avatar

Correct answer by
Level 10

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

JSON2.png

Avatar

Level 1

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/co...

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