BSON (Binary JSON) वह binary format है जिसका उपयोग MongoDB documents को संग्रहीत करने के लिए करता है — यह JSON को अतिरिक्त data types (जैसे dates, ObjectId, binary, और उचित number types) के साथ विस्तारित करता है और संग्रहीत करने तथा traverse करने में कुशल है। BSON types को समझना आपको डेटा को सही ढंग से संग्रहीत करने में मदद करता है।
BSON — अधिक types के साथ binary JSON
JSON has limited types (string, number, boolean, null, object, array).
BSON adds: ObjectId, Date, Binary, Decimal128, distinct Int/Long/Double, Timestamp, etc.
→ BSON is more efficient (binary, typed, traversable) and richer than plain JSON text.
