awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
alibaba avatar

alibaba/fastjson2

0
View on GitHub↗
4,307 星标·572 分支·Java·Apache-2.0·5 次浏览

Fastjson2

fastjson2 is a high-performance Java library used for serializing and deserializing Java objects to and from JSON strings and byte arrays. It functions as a binary JSON serializer for encoding objects into optimized binary formats to reduce payload size and increase processing speed.

The project includes a JSONPath query engine for extracting specific data and fields from JSON documents using standardized path expressions and filters. It also serves as a JSON schema validator, providing utilities to generate data contracts and validate JSON input against defined schemas to ensure structural correctness.

The library covers a broad range of data handling capabilities, including the transformation of JSON into maps or specific object types and the conversion of Java beans into binary formats. It provides mechanisms for custom serialization logic, field mapping via annotations, and the ability to preserve object types during conversion.

Features

  • JSON-to-Object Mappers - Transforms JSON strings and byte arrays into specific Java object types using class references.
  • JSON Deserializers - Transforms JSON strings and byte arrays into Java objects or maps for application processing.
  • Binary Deserialization - Reconstructs Java objects from binary data using embedded type information for automatic resolution.
  • Binary JSON Serialization - Converts objects into an optimized binary JSON format (JSONB) to reduce payload size and increase speed.
  • Binary Serialization Formats - Encodes Java objects into optimized binary formats to reduce payload size and increase processing speed.
  • JSONPath Extraction - Implements a JSONPath query engine to extract specific values from documents without full deserialization.
  • High-Performance JSON Encoders - Implements highly optimized encoding processes to convert data structures into JSON with minimal overhead.
  • Class Instance Binary Serializers - Transforms Java objects into UTF-8 byte arrays for efficient caching and RPC communication.
  • JSON Serializers - Converts Java objects into JSON strings or byte arrays for storage and network transmission.
  • JSON Libraries - Provides a high-performance suite of parsing, generation, and object mapping capabilities for JSON in Java.
  • JsonPath Implementations - Implements the JSONPath expression language to extract specific data and fields from JSON documents.
  • Bytecode Generation - Implements high-performance object mapping by generating specialized Java bytecode at runtime to bypass reflection.
  • Compact Binary Object Encoding - Provides optimized conversion of Java objects into minimized binary formats to reduce payload size.
  • Class Instance Binary Serializers - Converts typed class instances to compact binary representations while preserving class information for automatic type resolution.
  • Generic Map Deserialization - Transforms JSON strings into generic map structures for flexible and dynamic data access.
  • Direct Memory Buffers - Utilizes direct memory buffers to write UTF-8 bytes, minimizing object allocation and garbage collection pressure.
  • Object Hierarchy Querying - Evaluates JSONPath expressions against Java object hierarchies to retrieve specific data.
  • Data Type Serialization Configurations - Allows configuration of serialization behavior, including null handling, formatting, and matching logic.
  • Custom Serialization Interfaces - Provides dedicated reader and writer interfaces for implementing custom serialization logic for complex data types.
  • Custom Serializer Implementations - Enables the creation of custom serializers by implementing dedicated reading and writing logic.
  • Custom Field Mapping - Supports customizing field names, date formats, and visibility rules through class annotations.
  • Schema Validators - Provides a JSON schema validator to ensure incoming data conforms to a predefined structural template.
  • Token-Based Streaming Parsers - Implements token-based stream parsing to process JSON documents incrementally and reduce memory usage.
  • Type-to-Schema Generation - Generates standard JSON schema formats directly from Java type definitions to share data contracts.
  • Type Preservation - Maintains full type information during conversion to ensure complex objects are restored exactly as stored.
  • Data Validation Schemas - Checks input JSON data against defined schemas to ensure structural correctness and type safety.
  • JSON Schema Validation - Validates the integrity and presence of required fields in JSON data against a defined schema.

Star 历史

alibaba/fastjson2 的 Star 历史图表alibaba/fastjson2 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Fastjson2 的开源替代方案

相似的开源项目,按与 Fastjson2 的功能重合度排序。
  • alibaba/handyjsonalibaba 的头像

    alibaba/handyjson

    4,262在 GitHub 上查看↗

    HandyJSON is a Swift JSON serialization library and data mapper. It functions as an object mapper that converts JSON data into typed Swift models and transforms Swift objects back into JSON strings for storage or transmission. The library uses reflection to automatically map JSON keys to object properties and supports custom mapping metadata to resolve naming differences between APIs and code. It provides capabilities for extracting values from deep nested paths within a JSON structure and supports the transformation of complex types such as dates and URLs. The framework handles both the des

    Swift
    在 GitHub 上查看↗4,262
  • ibireme/yymodelibireme 的头像

    ibireme/YYModel

    4,353在 GitHub 上查看↗

    YYModel is a JSON model mapping library and bidirectional data mapper designed to transform raw JSON data into structured model objects and vice versa. It functions as a type-safe JSON parser that employs automatic type coercion to prevent application crashes caused by incompatible data types during the parsing process. The framework uses runtime introspection to map JSON keys to model properties based on naming rules and explicit configurations. It supports the instantiation of nested model objects through recursive traversal of the data hierarchy and provides a consistent translation layer

    Objective-C
    在 GitHub 上查看↗4,353
  • neuecc/messagepack-csharpneuecc 的头像

    neuecc/MessagePack-CSharp

    6,710在 GitHub 上查看↗

    MessagePack-CSharp is a high-performance binary serialization library for .NET applications that converts object graphs into the MessagePack format. It functions as a C# data serialization toolkit and a polymorphic binary encoder capable of handling abstract classes and interfaces using union keys to identify concrete derived types. The library provides a binary format transcoder to transform binary data into human-readable JSON for debugging. It supports ahead-of-time formatter generation to avoid runtime overhead and implements LZ4 binary compression to reduce the size of serialized data.

    C#
    在 GitHub 上查看↗6,710
  • mailru/easyjsonmailru 的头像

    mailru/easyjson

    4,892在 GitHub 上查看↗

    easyjson is a high-performance JSON serializer and memory-optimized parser for Go. It provides a reflectionless code generator that creates static Go methods for marshaling and unmarshaling data, eliminating the need for runtime reflection to improve execution speed. The library reduces CPU and memory overhead through several optimization strategies. It employs a system of reusable memory buffer pools to minimize heap allocations and garbage collection pressure. Additionally, it utilizes string interning to deduplicate repeated values and zero-copy string referencing to point to existing buff

    Gocode-generationgolangjson
    在 GitHub 上查看↗4,892
查看 Fastjson2 的所有 30 个替代方案→

常见问题解答

alibaba/fastjson2 是做什么的?

fastjson2 is a high-performance Java library used for serializing and deserializing Java objects to and from JSON strings and byte arrays. It functions as a binary JSON serializer for encoding objects into optimized binary formats to reduce payload size and increase processing speed.

alibaba/fastjson2 的主要功能有哪些?

alibaba/fastjson2 的主要功能包括:JSON-to-Object Mappers, JSON Deserializers, Binary Deserialization, Binary JSON Serialization, Binary Serialization Formats, JSONPath Extraction, High-Performance JSON Encoders, Class Instance Binary Serializers。

alibaba/fastjson2 有哪些开源替代品?

alibaba/fastjson2 的开源替代品包括: alibaba/handyjson — HandyJSON is a Swift JSON serialization library and data mapper. It functions as an object mapper that converts JSON… ibireme/yymodel — YYModel is a JSON model mapping library and bidirectional data mapper designed to transform raw JSON data into… neuecc/messagepack-csharp — MessagePack-CSharp is a high-performance binary serialization library for .NET applications that converts object… mailru/easyjson — easyjson is a high-performance JSON serializer and memory-optimized parser for Go. It provides a reflectionless code… alipay/fury — Fury is a multi-language binary serialization framework designed for encoding domain objects and complex graphs to… stleary/json-java — JSON-java is a Java library for parsing and generating JSON text and mapping it to Java objects and collections. It…