Skip to main content

Appendix A. Examples of Encoded CBOR Data Items

This appendix provides examples of CBOR-encoded data items in hexadecimal notation with diagnostic notation equivalents.

Examples:

  • 0x00 = 0
  • 0x01 = 1
  • 0x17 = 23
  • 0x1818 = 24
  • 0x1903e8 = 1000
  • 0x20 = -1
  • 0x37 = -24
  • 0xf4 = false
  • 0xf5 = true
  • 0xf6 = null
  • 0x40 = h'' (empty byte string)
  • 0x60 = "" (empty text string)
  • 0x80 = [] (empty array)
  • 0xa0 = (empty map)