Removal planned (tentative) 31 December 2027
Replacing Sling Commons JSON (org.apache.sling.commons.json)
Adobe states that Cloud Service does not support this API; it was deprecated on 15 May 2023 with a tentative removal date of 31 December 2027.
Affected packages and APIs
org.apache.sling.commons.json.*
What to use instead
javax.json (Apache Johnzon, provided by the platform), or Jackson / Gson embedded in your bundle.
How to fix it
- Replace JSONObject / JSONArray construction with javax.json builders or Jackson ObjectNode.
- Replace JSONWriter output in servlets with a Jackson ObjectMapper or JsonGenerator.
- Check number formatting and null handling in API responses; they differ slightly between libraries.
AEM 6.5
JSONObject json = new JSONObject();
json.put("title", page.getTitle());
response.getWriter().write(json.toString());Cloud Service
JsonObject json = Json.createObjectBuilder()
.add("title", page.getTitle())
.build();
response.getWriter().write(json.toString());How we detect it
- Readiness scan rule
sling-commons-json: Sling Commons JSON.
Best Practices Analyzer reports it under OCU.
Can agents fix it?
High, with contract tests on any JSON endpoint consumed by other systems.
The rating is for Surge Migrate's AEM 6.5 code pipeline. Agents draft the change, deterministic rules check it, and a named engineer approves every pull request. Your team merges.
Source: Adobe Experience League. Checked 19 October 2026.