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)