MIgrating from AEM version 6.1 to Version 6.5

Avatar

Avatar

Ankita_Aggarwal

Avatar

Ankita_Aggarwal

Ankita_Aggarwal

10-03-2021

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Vijayalakshmi_S

MVP

Avatar

Vijayalakshmi_S

MVP

Vijayalakshmi_S
MVP

10-03-2021

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)