liveBook · Manning

BSON

Also called Binary JSON

BSON is a binary-encoded serialization format for JSON-like documents and values, with support for additional data types such as dates and binary data.

How 2 Manning books explain it

MongoDB 8.0 in Action, Third Edition

BSON is a binary serialization format for documents that extends JSON-like data with additional types such as dates and binary data.

How it is used
Stores MongoDB records as JSON-like documents while supporting types such as dates and binary data.
How deep it goes
Defines BSON, illustrates document values, and gives the 16 MB limit; does not detail the binary encoding.
Examples
Shows a `findOne()` result containing an ObjectId and an array of assessment documents.
What you can do after
Evaluate/understand MongoDB document values and the 16 MB constraint when designing stored records.

Read how MongoDB 8.0 in Action, Third Edition explains BSON →

The Quick Python Book, Fourth Edition

BSON is a binary-encoded data serialization format used by MongoDB for storing document data.

How it is used
Stores MongoDB documents for scalable, distributed data with flexible or unstable schemas.
How deep it goes
Defines BSON through document shape and demonstrates CRUD operations, but does not explain its binary encoding internals.
Examples
Uses a person document with scalar fields, an interests array, a datetime, an ObjectId, and CRUD operations.
What you can do after
Operate/configure MongoDB documents through PyMongo by inserting, querying, updating, replacing, and deleting BSON-backed records.

Read how The Quick Python Book, Fourth Edition explains BSON →

Also covered in

What to know first

Related concepts

Questions about BSON

What is BSON?

BSON is a binary-encoded serialization format for JSON-like documents and values, with support for additional data types such as dates and binary data.

Which Manning books explain BSON?

MongoDB 8.0 in Action, Third Edition and The Quick Python Book, Fourth Edition.

What should I know before learning BSON?

Manning books that teach BSON usually introduce NoSQL database and Map first.

What is BSON a kind of?

BSON is a kind of JSON. JSON is a language-independent text-based data-interchange format that represents structured values using objects, arrays, strings, numbers, booleans, and null.

What is BSON also called?

BSON is also called Binary JSON.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.