A Survey of JSON-compatible Binary Serialization Specifications

Juan Cruz Viotti, Mital Kinderkhedia
1/6/2022
cs.DBcs.SE
survey

Official code: FasterXML/smile-format-specification (110 stars, BSD-2-Clause, last commit 2025-08-27).

Abstract

In this paper, we present the recent advances that highlight the characteristics of JSON-compatible binary serialization specifications. We motivate the discussion by covering the history and evolution of binary serialization specifications across the years starting from 1960s to 2000s and onwards.

Show full abstract

We analyze the use cases of the most popular serialization specifications across the industries. Drawing on the schema-driven (ASN.1, Apache Avro, Microsoft Bond, Cap'n Proto, FlatBuffers, Protocol Buffers, and Apache Thrift) and schema-less (BSON, CBOR, FlexBuffers, MessagePack, Smile, and UBJSON) JSON-compatible binary serialization specifications, we compare and contrast their inner workings through our analysis. We explore a set of non-standardized binary integer encoding techniques (ZigZag integer encoding and Little Endian Base 128 variable-length integer encoding) that are essential to understand the various JSON-compatible binary serialization specifications. We systematically discuss the history, the characteristics, and the serialization processes of the selection of schema-driven and schema-less binary serialization specifications and we identify the challenges associated with schema evolution in the context of binary serialization. Through reflective exercise, we explain our observations of the selection of JSON-compatible binary serialization specifications. This paper aims to guide the reader to make informed decisions on the choice between schema-driven or schema-less JSON-compatible binary serialization specifications.

View on arXivView PDF

Code Implementations(1)

BSD-2-Clause

New home for Smile format (https://en.wikipedia.org/wiki/Smile_(data_interchange_format))

11014Jun 29, 20171 years agoBSD-2-Clause
hacktoberfestsmile-format

Similar Papers

Cite this paper

@article{viotti2022survey,
  title  = {A Survey of JSON-compatible Binary Serialization Specifications},
  author = {Juan Cruz Viotti and Mital Kinderkhedia},
  year   = {2022},
  eprint = {2201.02089},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.02089}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2201.02089.svg)](https://codeofpaper.com/paper/2201.02089)

Discussion