Overview of JSON BinPack
mainJSON BinPack is an open-source binary JSON serialization format designed for high space efficiency. It is a hybrid format that supports two modes of operation:
- Schema-driven mode: Uses a JSON Schema 2020-12 definition to encode documents, leveraging semantic information to achieve high compression.
- Schema-less mode: Allows for encoding any JSON document without a strict schema, providing flexibility for free-form data.
Key benefits include:
- Space Efficiency: Often outperforms general-purpose compressors like GZIP, LZMA, and LZ4, especially for small to medium-sized documents.
- Standardized Schemas: Uses industry-standard JSON Schema, making it compatible with existing OpenAPI, AsyncAPI, or RAML specifications.
- Hybrid Flexibility: Allows you to be as strict or as loose as needed within the same document or across different use cases.