intermediate

Payload Design: JSON, CBOR and Binary Formats

Design messages that are small, clear and safe to evolve: JSON field names, units and timestamps, schema versions, integer scaling instead of floats, CBOR and Protocol Buffers, fixed binary layouts with Python's struct and byte order, base64 overhead, and how to measure the cost of every format against your link and battery budget.

60 min

Payload Design: JSON, CBOR and Binary Formats

Design messages that are small, clear and safe to evolve: JSON field names, units and timestamps, schema versions, integer scaling instead of floats, CBOR and Protocol Buffers, fixed binary layouts with Python's struct and byte order, base64 overhead, and how to measure the cost of every format against your link and battery budget.

In this lesson:

  • payload
  • json
  • cbor
  • protobuf
  • binary
  • struct
  • base64
  • schema
  • timestamp

🔒 This lesson is part of a paid plan

This lesson is part of the Pro plan. Upgrade to unlock the full lesson, the labs and the exam.

Upgrade Now

Official References

This lesson is part of a paid plan

Upgrade to Pro to unlock this course, its labs and its exam.

View Pricing Plans