What it is
CBOR (Concise Binary Object Representation) is a binary data format designed as a compact, self-describing alternative to JSON, standardized in RFC 8949.
When to use it
Developers use CBOR when working with protocols like COSE, CoAP, or WebAuthn that specify it directly, or when a compact binary payload matters more than human readability.
Gotchas & limits
CBOR supports data types JSON does not, such as native byte strings and tagged values; a naive JSON round-trip can lose that extra type information.