A Java serialization/deserialization library to convert Java Objects into JSON and back (by google)


Basic Gson repo stats
10 days ago

google/gson is an open source project licensed under Apache License 2.0 which is an OSI approved license.

Gson Alternatives

Similar projects and alternatives to Gson

  • GitHub repo EventBus

    Event bus for Android and Java that simplifies communication between Activities, Fragments, Threads, Services, etc. Less code, better quality.

  • GitHub repo Vault

    A tool for secrets management, encryption as a service, and privileged access management

  • GitHub repo react-hook-form

    📋 React Hooks for forms validation (Web + React Native)

  • GitHub repo RxAndroid

    RxJava bindings for Android

  • GitHub repo material-dialogs

    😍 A beautiful, fluid, and extensible dialogs API for Kotlin & Android.

  • GitHub repo Fresco

    An Android library for managing images and the memory they use.

  • GitHub repo Keycloak

    Open Source Identity and Access Management For Modern Applications and Services

  • GitHub repo Twig

    Twig, the flexible, fast, and secure template language for PHP

  • GitHub repo DOMPurify

    DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:

  • GitHub repo subsampling-scale-image-view

    Android library (AAR). Highly configurable, easily extendable deep zoom view for displaying huge images without loss of detail. Perfect for photo galleries, maps, building plans etc.

  • GitHub repo android-advancedrecyclerview

    RecyclerView extension library which provides advanced features. (ex. Google's Inbox app like swiping, Play Music app like drag and drop sorting)

  • GitHub repo LWJGL

    LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan), audio (OpenAL), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR) applications.

  • GitHub repo robospice

  • GitHub repo kotlinx.serialization

    Kotlin multiplatform / multi-format serialization

  • GitHub repo Spotbugs

    SpotBugs is FindBugs' successor. A tool for static analysis to look for bugs in Java code.

  • GitHub repo Thymeleaf

    Thymeleaf is a modern server-side Java template engine for both web and standalone environments.

  • GitHub repo OpenNoteScanner

    Android application for scanning and manipulating handwritten notes and documents. [Moved to:] (by ctodobom)

  • GitHub repo Images-to-PDF

    An app to convert images to PDF file!

  • GitHub repo MultiImagePicker

    A library to pick multi images in Android

  • GitHub repo libhpdf-AndroidLibrary

    An Android library project that provides JNI support for the libhpdf (libHaru) native PDF generation library.

NOTE: The number of mentions on this list indicates mentions on common posts. Hence, a higher number means a better Gson alternative or higher similarity.


Posts where Gson has been mentioned. We have used some of these posts to build our list of alternatives and similar projects - the last one was on 2021-04-04.
  • Pure Java / Json HTTP { "name": "value"} | 2021-04-19
    Java doesn't have a native library for nicely working with JSON. If you're able to use a 3rd party library I'd recommend something like gson to make things a lot easier. You can create a class to act as an object to represent the JSON data and unmarshall/deserialize each json line into an instance of that class. should help a bit.
  • Need help with planning a GUI project for my finals | 2021-04-04
    However, I do know that there isn't an inbuilt JSON parser within Java. So, you will need to include a third-party JSON parser library within your project. I've had experience with using gson for doing this myself, and that library is also rather easy to use.
  • How do I post a form with an array | 2021-03-29
    I don't know a ton about Java, but is there a reason it's not as simple as stringifying your form data with JSON.stringify() when posting on the client and then using something like this Java library from google to parse the JSON string on the server?
  • Need help reading data from a JSON file using Java | 2021-03-08
    Don't you worry, in java is as easy as it can get! I use GSON to parse my object to and from JSON. You can get it on the maven central but I'm pretty sure you can find the jar to import it somewhere although I do not recommend it. Here is a really good gide on how to use it
  • Web Application Security Checklist (2021) | 2021-02-16
    Use a well-known software component for the job and keep it rigorously up to date. Vulnerabilities are discovered in many deserialization libraries all the time. GSon is not a bad choice.
  • this little maneuver is gonna cost us 15,000 dollars | 2021-01-02
    Gson is dead
  • A foss "PDF scanner", alternatives to CamScanner | 2020-12-30
    Project: Gson Copyright (c) 2008 Google Inc. License (Apache License Version 2.0)
  • Question about Parsing JSON in Kotlin | 2020-12-22