1.2.2.1.1. CBOR Serialization
Integer

Types 0 (positive) and 1 (negative). Argument values 0-23 encode integers directly. Argument values 24-27 indicate integers in the next 1, 2, 4, 8 bytes big endian.

String

Types 2 (binary) and 3 (UTF-8). Argument value encoded as integer gives string length.

Array

Type 4. Argument value encoded as integer gives array length. Individual elements encoded with own headers.

Map

Type 5. Argument value encoded as integer gives map length. Individual key value pairs encoded with own headers.

Tag

Type 6. Tag value encoded as integer gives special meaning to next item. This includes date and time, big number binary strings, URL, special arrays and more.

Simple or Float

Type 7. Argument value indicate simple item or one of IEEE 754 formats. Simple items include booleans, null, NA and indefinite sequence stop mark.