talira

Compare

GsonJacksonFASTJSON 2Moshi
What it isGoogle's Java library for converting objects to and from JSONThe Java JSON library: a suite of data-processing tools for Java and the JVMHigh-performance JSON library for Java, the successor to fastjsonA modern JSON library for Android, Java and Kotlin
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.740.700.680.43
Stars242363756443010167
Last commit2026-11-222026-11-242026-11-152026-06-18
LicenceApache-2.0Apache-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————
CompanyGoogle
public company (NASDAQ:GOOGL)
FasterXML, LLCAlibaba GroupBlock
Features
  • 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
  • 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
  • parse JSON into Java and Kotlin classes
  • Kotlin code generation with KSP
  • custom type adapters
  • Android support
Limitations
  • 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.