MIgrating from AEM version 6.1 to Version 6.5 | Community
Skip to main content
Level 2
Mar 10, 2021 11:26 AM UTC
Solved

MIgrating from AEM version 6.1 to Version 6.5

Hi All,

 

In AEM 6.1, we are sending Json data to the UI via JSON library, now we are migrating to AEM 6.5, i have tried with Gson library but for that, i ll have to create lots of pojo classes, which is not feasible for my code base.

 

Any feasible solution to replace JSONObject and JSONArray.

 

P.S. I have like 20 servlets and all are creating JSON structures using above.

 

Please help

 

Thanks,

Ankita

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
Mar 10, 2021 2:12 PM UTC

Hi @ankita_aggarwal,

You can use org.json

In AEM 6.5.0, it is exposed via bundle named - Adobe Granite Bundles: json-20090211(com.adobe.granite.bundles.json)

3 replies

Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
Mar 10, 2021 2:12 PM UTC

Hi @ankita_aggarwal,

You can use org.json

In AEM 6.5.0, it is exposed via bundle named - Adobe Granite Bundles: json-20090211(com.adobe.granite.bundles.json)

Translate
Level 2
Mar 19, 2021 7:17 AM UTC
Thanks, this solved my issue
Translate