JSON Exporter : AEM 6.3.2 | Community
Skip to main content
Level 2
June 22, 2018
Solved

JSON Exporter : AEM 6.3.2

  • June 22, 2018
  • 8 replies
  • 4543 views

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.
Best answer by smacdonald2008

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

8 replies

June 22, 2018

Use the Annotation @JsonProperty("XYZ")

Example:

@JsonProperty("columnXyz")

public Map<String, Object> getColumn1() {

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

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

return firstColumMap;

}

smacdonald2008
Level 10
June 22, 2018
Level 2
June 25, 2018

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

smacdonald2008
Level 10
June 26, 2018
smacdonald2008
Level 10
June 26, 2018

smacdonald2008
Level 10
June 26, 2018

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

smacdonald2008
smacdonald2008Accepted solution
Level 10
June 26, 2018

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

subratam2837114
September 21, 2018

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