JSON and BSON
FAQs
You can use the online JSON tools to convert between BSON and JSON. MongoDB also provides the bsondump tool to convert BSON into JSON.
BSON provides the following advantages over JSON:
- BSON supports more data types, like date, time, and binary data.
- BSON’s binary structure allows faster traversal and data retrieval.
- BSON provides additional metadata, like length and type information, thus making searches faster.
BSON is the binary-encoded serialization of JSON data. While JSON string is human-readable, BSON needs to be parsed. BSON gives the additional benefits of having more data types, being lightweight and traversable, and storing data more efficiently. It is also efficient for coding and decoding with many programming languages.
Get started with Atlas today
Get started in seconds. Our free clusters come with 512 MB of storage so you can play around with sample data and get oriented with our platform.
GET STARTED WITH:
- 125+ regions worldwide
- Sample data sets
- Always-on authentication
- End-to-end encryption
- Command line tools