{# canonical_base is the OWNING tenant's origin: all 16 Peasy domains serve the same catalogue, so a page rendered by a non-owner points its canonical at the owner instead of competing with it. Falls back to this site for static/self-owned pages. #}
🍋
Menu
.bson Data

BSON (Binary JSON)

MongoDB द्वारा उपयोग किया जाने वाला बाइनरी JSON-जैसा दस्तावेज़ फॉर्मेट। BSON JSON सिमेंटिक्स बनाए रखते हुए अतिरिक्त डेटा टाइप (Date, Binary, ObjectId) और तेज़ ट्रैवर्सल प्रदान करता है।

MIME Type

application/bson

प्रकार

बाइनरी

संपीड़न

दोषरहित

लाभ

  • + Rich type system beyond JSON (dates, ObjectId, binary, Decimal128)
  • + Efficient for database storage — length-prefixed for fast scanning
  • + Supports in-place updates without rewriting entire documents

हानियाँ

  • Can be larger than JSON for string-heavy documents
  • Not human-readable — requires tooling to inspect
  • Primarily MongoDB-specific — limited use outside that ecosystem

.BSON कब उपयोग करें

MongoDB डेटा स्टोरेज/एक्सपोर्ट, ऐसे ऐप्लिकेशन जिन्हें JSON+ अतिरिक्त टाइप की आवश्यकता हो (Date, Binary), और MongoDB इकोसिस्टम के बीच डेटा ट्रांसफर।

तकनीकी विवरण

BSON length-prefixed बाइनरी फॉर्मेट है जो element type (1 byte) + name (cstring) + value से बना होता है। JSON से अतिरिक्त: Date (int64 milliseconds), Binary, ObjectId (12 bytes), Regex, Decimal128 टाइप। length prefixes O(1) element skipping सक्षम करते हैं।

इतिहास

MongoDB, Inc. ने 2009 में MongoDB डेटाबेस के लिए BSON विकसित किया। BSON स्पेसिफ़िकेशन को bsonspec.org पर ओपन स्टैंडर्ड के रूप में प्रकाशित किया गया। MongoDB इकोसिस्टम के अलावा, BSON अन्य डेटाबेस और मैसेजिंग सिस्टम में भी उपयोग किया जाता है।

.BSON से रूपांतरित करें

.BSON में रूपांतरित करें

संबंधित फ़ॉर्मेट