Need Assistance?

support@tutorialshub.in

Databases, Collections & Documents

JSON vs BSON Data Format

ADVERTISEMENT
MongoDB Free Lesson
5 min read
ADVERTISEMENT

Although you write MongoDB queries using JSON-like syntax, MongoDB stores data internally as BSON (Binary JSON). BSON is faster to parse and supports extra data types that standard JSON lacks:

  • ObjectId — 12-byte unique identifier
  • Date — ISO-8601 date/time
  • Int32, Int64, Decimal128 — Precise numeric types
  • BinData — Binary data
ADVERTISEMENT
Hi, I'm Tuby! Here to help you