Beispiele
Read MongoDB's published hello-world BSON bytes
Explain where a BSON document stores its length, field type, name and value.
Eingabe
98b1aac7cf39409f-hello-world.bson
22 bytes
HerunterladenExpected answer
JSON{
"hello": "world"
}A compact feature-flag record
Eingabe
c7e64c406602db906d3750eb.bin
27 bytes
HerunterladenExpected answer
JSON{
"compact": true,
"schema": 0
}A UTF-8 café label
Eingabe
6c5ed3425926f675b5d966a5.bin
37 bytes
HerunterladenExpected answer
JSON{
"name": "café",
"city": "Paris"
}A negative sensor reading
Eingabe
af8f37cc0b5a143665729c3b.bin
36 bytes
HerunterladenExpected answer
JSON{
"station": "demo",
"celsius": -12
}A decimal checkout amount
Eingabe
aff43eb33be8bd7282620943.bin
39 bytes
HerunterladenExpected answer
JSON{
"amount": 12.5,
"currency": "EUR"
}A missing avatar
Eingabe
1678dc8706ba89779e91998e.bin
28 bytes
HerunterladenExpected answer
JSON{
"user": "demo",
"avatar": null
}A nested configuration
Eingabe
a011ceeb3fdd02377d0df2c8.bin
34 bytes
HerunterladenExpected answer
JSON{
"server": {
"port": 443,
"tls": true
}
}basic
Eingabe
98b1aac7cf39409f348c4d52.bin
22 bytes
HerunterladenExpected answer
JSON{
"hello": "world"
}