liveBook · Manning

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.

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 →

Related concepts

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.