Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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)