فك تسلسل BSON

يقرأ بيانات BSON الثنائية ويحوّل بنية المستند إلى JSON.

المدخلات: نص (UTF-8) / ملفالنتيجة: نص

إدخال نصي

أمثلة

Read MongoDB's published hello-world BSON bytes

Explain where a BSON document stores its length, field type, name and value.

المدخلات

98b1aac7cf39409f-hello-world.bson

22 bytes

تنزيل

Expected answer

JSON
{
  "hello": "world"
}
A compact feature-flag record

المدخلات

c7e64c406602db906d3750eb.bin

27 bytes

تنزيل

Expected answer

JSON
{
  "compact": true,
  "schema": 0
}
A UTF-8 café label

المدخلات

6c5ed3425926f675b5d966a5.bin

37 bytes

تنزيل

Expected answer

JSON
{
  "name": "café",
  "city": "Paris"
}
A negative sensor reading

المدخلات

af8f37cc0b5a143665729c3b.bin

36 bytes

تنزيل

Expected answer

JSON
{
  "station": "demo",
  "celsius": -12
}
A decimal checkout amount

المدخلات

aff43eb33be8bd7282620943.bin

39 bytes

تنزيل

Expected answer

JSON
{
  "amount": 12.5,
  "currency": "EUR"
}
A missing avatar

المدخلات

1678dc8706ba89779e91998e.bin

28 bytes

تنزيل

Expected answer

JSON
{
  "user": "demo",
  "avatar": null
}
A nested configuration

المدخلات

a011ceeb3fdd02377d0df2c8.bin

34 bytes

تنزيل

Expected answer

JSON
{
  "server": {
    "port": 443,
    "tls": true
  }
}
basic

المدخلات

98b1aac7cf39409f348c4d52.bin

22 bytes

تنزيل

Expected answer

JSON
{
  "hello": "world"
}

أدوات ذات صلة

تنسيق الشفرة

مرجع العملية

عرض الوثائق التقنية الأصلية (English)