Jackson VS Gson

Compare Jackson vs Gson and see what are their differences.

Jackson

Core part of Jackson that defines Streaming API as well as basic shared abstractions (by FasterXML)

Gson

A Java serialization/deserialization library to convert Java Objects into JSON and back (by google)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
Jackson Gson
4 26
2,228 22,929
0.6% 0.4%
9.5 9.1
9 days ago 9 days ago
Java Java
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Jackson

Posts with mentions or reviews of Jackson. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-07.
  • Streaming Large JSON Response in Spring.
    3 projects | dev.to | 7 Oct 2022
    To put things simply, this method findAllStreaming() takes an OutputStream to write the whole json response into. To write json into the stream chunk by chunk we are using JsonGenerator. JsonGenerator is provided by Jackson-Core. More detailed about how to write stream event is covered in this blog post by the author of the library.
  • Ryū: fast float-to-string conversion (Java lib, 2018 paper)
    3 projects | /r/java | 7 Mar 2021
    Jackson already has some improvements for string-to-number conversion over stock JDK parser (https://github.com/FasterXML/jackson-core/pull/677). Would be great if they added faster number-to-string too.
  • 💾 Java Records 💿 with Jackson 2.12
    2 projects | dev.to | 3 Mar 2021
    🐞 Report issues here if you find any

Gson

Posts with mentions or reviews of Gson. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-04.

What are some alternatives?

When comparing Jackson and Gson you can also consider the following projects:

Moshi - A modern JSON library for Kotlin and Java.

jsoniter - jsoniter (json-iterator) is fast and flexible JSON parser available in Java and Go

Yasson - Eclipse Yasson project

Jackson JSON Processor - Main Portal page for the Jackson project

Genson - Genson a fast & modular Java <> Json library

kotlinx.serialization - Kotlin multiplatform / multi-format serialization

HikariJSON - High-performance JSON parser

LoganSquare - Screaming fast JSON parsing and serialization library for Android.