What is BSON?
BSON is a binary data-storage format used by MongoDB. It's similar to JSON, but stored in binary form and has extra data types.
The main points, at a junior level
- Stands for: Binary JSON
- Why it exists: to read and write data faster than plain JSON
- Where it's used: inside MongoDB, for storing documents in collections
- What's special about it: it supports extra types that JSON doesn't have (e.g.
ObjectId,Date,Binary) - Advantage: takes up less space and processes faster
An example of the logic
JSON → convenient for humans BSON → convenient for computers
In short, BSON is "JSON for machines": compact, binary, and with a larger set of data types.
Short Answer
Interview readyPremium
A concise answer to help you respond confidently on this topic during an interview.