Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

MIgrating from AEM version 6.1 to Version 6.5

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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)

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

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)