What Is BSON and Why MongoDB Uses It Over Plain JSON
BSON, or Binary JSON, is a binary serialization format that extends standard JSON with additional data types such as dates, binary data, Decimal128, and ObjectId. Unlike JSON, BSON stores data in binary form rather than readable text, making encoding, decoding, and storage significantly faster. MongoDB adopted BSON as its core storage and communication format because it handles high-throughput workloads efficiently and supports data types that plain JSON cannot represent. Binary encoding also tends to be more compact than text-based JSON, particularly for numbers and timestamps. Built-in size and type metadata within each BSON document further helps MongoDB optimize indexing and query performance across all officially supported language drivers.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in