Decodificar com CBOR

Decodifica a entrada com “CBOR” de acordo com o padrão correspondente.

Entrada: Texto (UTF-8) / Um arquivoResultado: JSON estruturado

or drop a file here

Entrada de texto

Execute para ver o resultado

Exemplos

Expand a nine-byte CBOR object into readable JSON

Show how a short binary map still carries an object, an integer and an array.

Entrada

b44774f185e1268b-nested.cbor

9 bytes

Baixar

Expected answer

JSON
{
    "a": 1,
    "b": [
        2,
        3
    ]
}
Can decode decimal

Entrada

b68bb45ecab0329ab815daf4.bin

3 bytes

Baixar

Expected answer

JSON
1.5
Can decode integer

Entrada

dc0e9c3658a1a3ed1ec94274.bin

1 bytes

Baixar

Expected answer

JSON
15
From Hex: Can decode boolean false

Entrada

2017ff3461395672aa0aa4f6.bin

1 bytes

Baixar

Expected answer

JSON
false
From Hex: Can decode boolean true

Entrada

27abdeddfe8503496adeb623.bin

1 bytes

Baixar

Expected answer

JSON
true
From Hex: Can decode list

Entrada

c17bb45e50cabd2b8f13ba5b.bin

4 bytes

Baixar

Expected answer

JSON
[
    0,
    1,
    2
]
From Hex: Can decode map

Entrada

7213412782d89839dc4fcb6b.bin

10 bytes

Baixar

Expected answer

JSON
{
    "a": 1,
    "b": 2,
    "c": 3
}
From Hex: Can decode text

Entrada

b9c75dfe7b1571f8b606d709.bin

5 bytes

Baixar

Expected answer

JSON
"Text"

Ferramentas relacionadas

Formato de dados

Referência da operação

Ver a documentação técnica original (English)