Registry / serialization / json-lib

json-lib

JSON →
library2.2.2javamavenunverified

Java library for transforming beans, maps, collections, Java arrays and XML to JSON.

<dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</artifactId> <version>2.2.2</version> </dependency>
INSTALL
IMPORT
SIG · JSON-LIB
J
json-lib
serializationjavav2.2.2
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
net.sf.json.JSONObject

Creates a JSONObject and converts it to a JSON string.

import net.sf.json.JSONObject; public class Example { public static void main(String[] args) { JSONObject json = new JSONObject(); json.put("key", "value"); System.out.println(json.toString()); } }
Debug
Known issues
breakingJSON-lib is outdated and may have security vulnerabilities; consider using Jackson or Gson.
fix
Migrate to a modern JSON library like Jackson (com.fasterxml.jackson) or Gson (com.google.gson).
affects: >=2.0
Upgrade
Version history
2.2.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
json-lib — mvn dependency:get json-lib · libregistry