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.
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
- MongoDBused by · MongoDB is a document-oriented database management system that stores data as BSON documents, typically organized into collections.
- mongorestoreused by · mongorestore is a MongoDB Database Tools utility that restores data from BSON dump archives into a MongoDB database.
- pymongoused by · PyMongo is the official Python driver for connecting applications to MongoDB and performing database operations.
- MongoDB driverused by · A MongoDB driver is a language-specific client library that connects applications to MongoDB and provides database operations.
- document-oriented data modelused by · A document-oriented data model represents records as self-contained documents that can have flexible, nested, or variable fields rather than fixed relational rows.
- JSONkind of · JSON is a standardized, language-independent text format for representing structured data using objects, arrays, strings, numbers, Boolean values, and null.
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.

