Examples
Expand a nine-byte CBOR object into readable JSON
Show how a short binary map still carries an object, an integer and an array.
Input
b44774f185e1268b-nested.cbor
9 bytes
DownloadExpected answer
JSON{
"a": 1,
"b": [
2,
3
]
}{
"a": 1,
"b": [
2,
3
]
}Can decode decimal
Input
b68bb45ecab0329ab815daf4.bin
3 bytes
DownloadExpected answer
JSON1.51.5
Can decode integer
Input
dc0e9c3658a1a3ed1ec94274.bin
1 bytes
DownloadExpected answer
JSON1515
From Hex: Can decode boolean false
Input
2017ff3461395672aa0aa4f6.bin
1 bytes
DownloadExpected answer
JSONfalsefalse
From Hex: Can decode boolean true
Input
27abdeddfe8503496adeb623.bin
1 bytes
DownloadExpected answer
JSONtruetrue
From Hex: Can decode list
Input
c17bb45e50cabd2b8f13ba5b.bin
4 bytes
DownloadExpected answer
JSON[
0,
1,
2
][
0,
1,
2
]From Hex: Can decode map
Input
7213412782d89839dc4fcb6b.bin
10 bytes
DownloadExpected answer
JSON{
"a": 1,
"b": 2,
"c": 3
}{
"a": 1,
"b": 2,
"c": 3
}From Hex: Can decode text
Input
b9c75dfe7b1571f8b606d709.bin
5 bytes
DownloadExpected answer
JSON"Text""Text"
Format reference: CBOR Decode background and specification