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)