The state of Java Object Serialization libraries in Q2 2023

This page summarizes the projects mentioned and recommended in the original post on /r/java

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
Nutrient - The #1 PDF SDK Library
Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.
nutrient.io
featured
  1. DSL-JSON

    High performance JVM JSON library

    You gotta at least add the top contender. I mean dsl-json is probably the fastest json lib java has to offer. I personally like Rob's avaje-jsonb, because I think the approach of no reflection, and doing everything via annotation processing is rad. (it also has some decent speed too)

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. jsoniter

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

    What about jsoniter?

  4. jvm-serializers

    Benchmark comparing serialization libraries on the JVM

    First, there's benchmarks here if you haven't seen it: jvm-serializers. Not terribly scientific, but it's something. To make any decision, you really need to benchmark your own object graph and it's important to configure the serializer for your particular usage. Still, it is sort of useful for comparing frameworks. It would be interesting to see how Loial performs there. Ping me if you add it.

  5. jsonbeans

    Java object graphs, to and from JSON automatically

    JsonBeans is similar to YamlBeans in how it does object marshaling, but uses a Ragel parser. I like Ragel and thought parsing JSON with it was neat, particularly that I could easily relax JSON parsing rules: "JavaScript" where the object property names are only quoted when needed or "minimal" where both object property names and values are only quoted when needed. Also commas are optional, as much as possible. The generic object graph was inspired by cJSON. JsonBeans is embedded in libgdx, so sees a lot of usage there. JSON isn't the right choice of data format if you want fast or efficient, so JsonBeans goal is only to be convenient.

  6. qson

    QSON is an object to JSON mapper

    https://github.com/quarkusio/qson also does code generation at build time using the Quarkus infrastructure and thus avoids reflection at runtime

  7. Nutrient

    Nutrient - The #1 PDF SDK Library. Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.

    Nutrient logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Why is json logging the “standard”?

    2 projects | /r/golang | 10 Mar 2023
  • How We Built a Serverless Backend Using GraalVM, AWS Lambda and Astra DB (Part 2)

    5 projects | dev.to | 3 Feb 2023
  • I benchmarked kotlin rust and go. The results will shock you , or not.

    4 projects | /r/Kotlin | 15 Jan 2023
  • How can we umarshal a Big JSON effectively?

    4 projects | /r/golang | 16 Nov 2022
  • JEP draft: 64 bit object headers

    4 projects | news.ycombinator.com | 11 Oct 2022

Did you know that Java is
the 8th most popular programming language
based on number of references?