talira

Compare

JSON-java (org.json)FASTJSON 2GsonJackson
What it isThe reference JSON implementation for Java, in the public domainHigh-performance JSON library for Java, the successor to fastjsonGoogle's Java library for converting objects to and from JSONThe Java JSON library: a suite of data-processing tools for Java and the JVM
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.610.680.740.70
Stars47284430242363756
Last commit2026-11-212026-11-152026-11-222026-11-24
Licencepublic domainApache-2.0Apache-2.0Apache-2.0
PricingFree and open sourceFree and open sourceFree and open sourceFree and open source
Free tierYesYesYesYes
Self-hostable————
Ways to run it————
SOC 2————
HIPAA————
SSO————
API————
Plugins———Yes
MCP server————
CompanySean LearyAlibaba GroupGoogle
public company (NASDAQ:GOOGL)
FasterXML, LLC
Features
  • parse and generate JSON with JSONObject and JSONArray
  • convert between JSON and XML, HTTP headers, cookies and CDL
  • no external dependencies
  • runs on Java 1.6 to 25
  • JSON and binary JSONB
  • partial parsing with JSONPath
  • JSON Schema validation
  • Kotlin module and Spring integration
  • fastjson 1.x compatibility package
  • GraalVM native image support
  • convert Java objects to JSON and back with toJson and fromJson
  • works with classes you can't annotate
  • full support for Java generics
  • custom serializers and type adapters
  • Streaming JSON parser and generator (jackson-core)
  • Data binding between Java objects and JSON (jackson-databind ObjectMapper)
  • Annotations to control serialization (jackson-annotations)
  • Data format modules: Avro, CBOR, CSV, Properties, Protobuf, Smile, TOML, XML, YAML
  • Data type modules: Java 8 date/time, JDK 8 types, Guava, Joda and others
  • JAX-RS providers
  • LTS releases on the 2.x and 3.x lines
Limitations
  • In a maintenance phase: only limited changes are accepted
    • Not recommended on Android: its reflection breaks under R8 and ProGuard shrinking and obfuscation in release builds.
    • Kotlin-specific features such as non-null types and default constructor arguments aren't supported.
    • In maintenance mode: bugs are fixed, but large new features are unlikely.