awesome-repositories.com
Blog
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
google avatar

google/gson

0
View on GitHub↗
24,357 stars·4,407 forks·Java·apache-2.0·12 views

Gson

Gson is a Java library designed for the serialization and deserialization of objects into structured text formats. It functions as a reflection-based data mapper, inspecting class structures at runtime to automatically convert memory-resident objects into data representations and reconstruct them back into typed language objects.

The library distinguishes itself through a modular type-adapter pattern that allows for custom conversion rules for complex or nested structures. It also provides robust support for production environments by generating build-time metadata and configuration rules, which ensure that serialized classes remain accessible and functional when subjected to aggressive code shrinking, obfuscation, or native image compilation.

Beyond its core mapping capabilities, the library includes a streaming tokenizer to minimize memory overhead when processing large data sets. It also supports annotation-driven schema mapping, enabling developers to define custom naming conventions and field exclusion rules directly within their source code.

Features

  • JSON Serialization Libraries - Transforms objects into structured JSON text and parses strings back into typed object formats.
  • Serialization Libraries - Converts complex object graphs into structured text formats and reconstructs them back into typed language objects.
  • Data Serialization Frameworks - Converts complex programming objects into structured text formats and reconstructs them into functional objects.
  • Type-Safe Data Handling - Ensures data structures remain consistent and predictable when moving between raw text and strongly typed code.
  • JSON - 谷歌官方的高性能JSON序列化与反序列化库。
  • JSON Processing - Serializes and deserializes objects to and from JSON.
  • Android Development Utilities - Library for converting Java objects to JSON and back.
  • Android Libraries - JSON serialization and deserialization library.
  • Core Libraries - Fast and simple library for JSON serialization and deserialization.
  • Data Serialization - Library for serializing and deserializing Java objects.
  • General Purpose Libraries - Library for converting Java objects to JSON and vice versa.
  • Utility and Integration Libraries - Library for converting Java objects to JSON and vice versa.
  • Data Mappers - Inspects class structures to automatically map field values between memory-resident objects and external data representations.
  • Serialization Adapters - Encapsulates serialization logic for specific data types into modular components for custom conversion.
  • Native Compilation Metadata - Generates configuration files to ensure classes accessed via reflection remain functional in optimized native binaries.
  • Native Image Configurations - Configures metadata to ensure classes accessed via reflection remain functional within native executable binaries.
  • Streaming Parsers - Processes input text as a continuous stream of tokens to minimize memory overhead during parsing.
  • Metadata Generators - Provides configuration to ensure serialized class structures remain accessible during code shrinking or native compilation.
  • Native Image Compatibility Tools - Configures metadata and reflection rules to ensure serialized classes function correctly in standalone binary executables.
  • Schema Mapping Tools - Provides annotation-driven rules to control field naming and exclusion during automated data transformation.

Star history

Star history chart for google/gsonStar history chart for google/gson

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Gson

Similar open-source projects, ranked by how many features they share with Gson.
  • square/moshisquare avatar

    square/moshi

    10,138View on GitHub↗

    Moshi is a JSON serialization library and parser for Kotlin and Java. It functions as a reflectionless JSON encoder that converts typed objects to JSON strings and parses JSON data back into language objects. The library distinguishes itself through compile-time adapter generation, which removes the performance overhead associated with runtime reflection. It also provides a polymorphic JSON mapper that uses type identifiers to resolve and instantiate specific subclasses of a common base type. The framework supports custom adapter definitions for specialized type conversion, including nullabi

    Kotlin
    View on GitHub↗10,138
  • serde-rs/serdeserde-rs avatar

    serde-rs/serde

    10,457View on GitHub↗

    This project is a framework for the efficient serialization and deserialization of data structures. It provides a unified, macro-based interface that automates the conversion of complex internal objects into standardized formats and reconstructs them from raw input streams or buffers. By leveraging compile-time code generation, the library minimizes manual implementation overhead while ensuring consistent logic across diverse data types. The framework distinguishes itself through a format-agnostic data model and a visitor-based parsing architecture that decouples data structures from specific

    Rustderiveno-stdrust
    View on GitHub↗10,457
  • jprichardson/node-fs-extrajprichardson avatar

    jprichardson/node-fs-extra

    9,610View on GitHub↗

    node-fs-extra is a Node.js file system extension that provides a set of additional methods to simplify common file and directory operations. It functions as a recursive directory manager, a JSON file processor, and a file asset manipulator, extending the standard library to provide high-level utilities for managing assets on disk. The project distinguishes itself through recursive capabilities, such as duplicating or removing nested folder structures and ensuring that all missing parent directories are automatically generated when creating files or symbolic links. It also integrates a JSON se

    JavaScriptcopydeletefilesystem
    View on GitHub↗9,610
  • miloyip/rapidjsonmiloyip avatar

    miloyip/rapidjson

    15,095View on GitHub↗

    RapidJSON is a high-performance C++ library used for parsing and generating JSON data. It provides both document object model and stream-based interfaces to transform JSON strings into structured data and vice versa. The library includes a JSON schema validator to verify that documents conform to predefined rules and a Unicode transcoder for converting strings between UTF-8, UTF-16, and UTF-32 encodings. It also supports relaxed parsing for non-standard JSON containing comments or trailing commas. Additional capabilities cover JSON pointer navigation for locating specific values and string s

    C++
    View on GitHub↗15,095
See all 30 alternatives to Gson→

Frequently asked questions

What does google/gson do?

Gson is a Java library designed for the serialization and deserialization of objects into structured text formats. It functions as a reflection-based data mapper, inspecting class structures at runtime to automatically convert memory-resident objects into data representations and reconstruct them back into typed language objects.

What are the main features of google/gson?

The main features of google/gson are: JSON Serialization Libraries, Serialization Libraries, Data Serialization Frameworks, Type-Safe Data Handling, JSON, JSON Processing, Android Development Utilities, Android Libraries.

What are some open-source alternatives to google/gson?

Open-source alternatives to google/gson include: square/moshi — Moshi is a JSON serialization library and parser for Kotlin and Java. It functions as a reflectionless JSON encoder… serde-rs/serde — This project is a framework for the efficient serialization and deserialization of data structures. It provides a… jprichardson/node-fs-extra — node-fs-extra is a Node.js file system extension that provides a set of additional methods to simplify common file and… miloyip/rapidjson — RapidJSON is a high-performance C++ library used for parsing and generating JSON data. It provides both document… alibaba/fastjson — Fastjson is a Java data binding framework and serialization library designed to convert objects to JSON strings and… json-iterator/go — This project is a high-performance JSON library for Go, serving as a replacement for the standard encoding/json…