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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • 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)

  • jsoniter

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

  • What about jsoniter?

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • 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.

  • 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.

  • 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

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB 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