Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

MIgrating from AEM version 6.1 to Version 6.5

Avatar

Avatar
Validate 1
Level 1
Ankita_Aggarwal
Level 1

Likes

0 likes

Total Posts

20 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Ankita_Aggarwal
Level 1

Likes

0 likes

Total Posts

20 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Ankita_Aggarwal
Level 1

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
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

510 likes

Total Posts

645 posts

Correct Reply

213 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

510 likes

Total Posts

645 posts

Correct Reply

213 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
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)

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
MVP
Nikhil-Kumar
MVP

Likes

243 likes

Total Posts

256 posts

Correct Reply

38 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
MVP
Nikhil-Kumar
MVP

Likes

243 likes

Total Posts

256 posts

Correct Reply

38 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile
Nikhil-Kumar
MVP

18-03-2021