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)