What is CBOR?
CBOR (Concise Binary Object Representation, RFC 8949) is a binary serialization format inspired by JSON but more compact and faster to parse. Every value starts with a single initial byte: the top three bits encode the major type (0–7) and the bottom five bits carry the additional information (a small value, or a length indicator).
This compact framing means most small values fit in a single byte. 0x00 is the integer 0, 0x18 18 is the integer 24, and 0xa0 is an empty map. The format is self-delimiting, so no terminators or schemas are required to parse it.