Suggest an editImprove this articleRefine the answer for “What data types does BSON support?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)BSON supports an extended set of types compared to JSON: the usual ones (`Double`, `String`, `Boolean`, `Int32`/`Int64`, `Decimal128`, `Null`, `Array`, `Object`) and BSON-specific ones (`ObjectId`, `Date`, `Timestamp`, `Binary`, regular expressions, JavaScript code, `MinKey`/`MaxKey`). **Key point:** it's exactly the special types like `ObjectId`, `Date`, `Binary`, and `Timestamp` that help MongoDB work more efficiently than it would with plain JSON.Shown above the full answer for quick recall.Answer (EN)ImageBSON supports an extended set of types compared to JSON. The main ones are: ### The basic types - `Double`, a floating-point number - `String`, a string (UTF-8) - `Boolean`, a logical type (true/false) - `Int32`, `Int64`, integers - `Decimal128`, an exact decimal number (e.g. for money) - `Null`, an empty value - `Array`, an array - `Object`, a nested document ### The types unique to BSON - `ObjectId`, a unique document identifier (12 bytes) - `Date`, a date and time - `Timestamp`, a type used for replication and internal operations - `Binary`, binary data (e.g. files) - `Regular Expression`, regular expressions - `JavaScript`, JS code as a value - `JavaScript (with scope)`, JS code plus context - `Symbol`, a deprecated type similar to a string - `MinKey` and `MaxKey`, internal values used for sorting - `Undefined`, a deprecated type, equivalent to undefined **Summary:** BSON supports both ordinary data types (numbers, strings, arrays) and special ones, `ObjectId`, `Date`, `Binary`, `Timestamp`, and others, which help MongoDB work more efficiently than it would with plain JSON.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.