Registry / serialization / org-apache-sling-commons-json

org-apache-sling-commons-json

JSON →
library2.0.28javamavenunverified

JSON parsing and generation library for Apache Sling, based on the JSON.org library.

<dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.commons.json</artifactId> <version>2.0.28</version> </dependency>
INSTALL
IMPORT
SIG · ORG-APACHE-SLING-C
O
org-apache-sling-commons-json
serializationjavav2.0.28
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JSONObject
org.apache.sling.commons.json.JSONObject

Parse a JSON string into a JSONObject.

import org.apache.sling.commons.json.JSONObject; public class Example { public static void main(String[] args) throws Exception { JSONObject obj = new JSONObject("{\"key\":\"value\"}"); System.out.println(obj.getString("key")); } }
Debug
Known issues
gotchaThis library is based on the deprecated JSON.org implementation; consider using Jackson or Gson for new projects.
fix
Migrate to a more modern JSON library like Jackson.
affects: >=2.0.0
Upgrade
Version history
2.0.28latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
org-apache-sling-commons-json — mvn dependency:get org-apache-sling-commons-json · libregistry