Home / Companies / MongoDB / Blog / Post Details
Content Deep Dive

The Top 12 BSON Data Types you won't find in JSON

Blog post from MongoDB

Post Details
Company
Date Published
Author
Dj Walker-Morgan
Word Count
697
Language
English
Hacker News Points
-
Summary

BSON is a binary version of JSON and has many more data types than JSON, allowing for more precise querying. BSON includes `Minkey`, `Maxkey`, `Binary Data`, `TimeStamp`, `Date`, `ObjectID`, `Regular Expression`, `JavaScript`, `Double`, `Int`, `Long`, and `Decimal128` as its primary data types, which cannot be found in JSON. These additional data types provide more precision and flexibility for storing and querying data in MongoDB. BSON also provides specialized number types such as `Int`, `Long`, and `Decimal128` to handle integer values with varying degrees of precision.