Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

org.apache.sling.commons.json.JSONObject deprecated API in AEM 6.3

Avatar

Level 6
1 Accepted Solution

Avatar

Correct answer by
Level 5

Yes Sel,

You can find all deprecated class,Interface of org.apache.sling.common.json package in AEM 6.3.

org.apache.sling.commons.json ("The Adobe AEM Quickstart and Web Application.")

IN place of this You can use Gson

Java POJO to JSON using Gson (com.google.gson.Gson) - CoderMagnet - JAVA JCR AEM Sightly Resource

View solution in original post

1 Reply

Avatar

Correct answer by
Level 5

Yes Sel,

You can find all deprecated class,Interface of org.apache.sling.common.json package in AEM 6.3.

org.apache.sling.commons.json ("The Adobe AEM Quickstart and Web Application.")

IN place of this You can use Gson

Java POJO to JSON using Gson (com.google.gson.Gson) - CoderMagnet - JAVA JCR AEM Sightly Resource