CBOR 編碼

按照相應標准将輸入CBOR 編碼。

輸入: 結構化 JSON結果: 二進位位元組

文本輸入

執行後查看結果

範例

CBOR Decode: Can encode decimal

輸入

1.5

Expected answer

Hexadecimal bytes
f9 3e 00
Can encode boolean false

輸入

false

Expected answer

Hexadecimal bytes
f4
Can encode boolean true

輸入

true

Expected answer

Hexadecimal bytes
f5
Can encode integer

輸入

15

Expected answer

Hexadecimal bytes
0f
Can encode list

輸入

[0,1,2]

Expected answer

Hexadecimal bytes
83 00 01 02
Can encode map

輸入

{"a":1,"b":2,"c":3}

Expected answer

Hexadecimal bytes
a3 61 61 01 61 62 02 61 63 03
Can encode text

輸入

"Text"

Expected answer

UTF-8 text · exact bytes
dText

相关工具

資料格式

操作参考

查看原始技术文檔 (English)