Skip to main content

JSON Messages

JSON (JavaScript Object Notation) is a lightweight format for storing and transporting data. It is self-describing and easy to understand.

JSON is built on two structures:

  • A collection of name/value pairs. In various languages, this is realized as an object, record, or struct.
  • An ordered list of values. In most languages, this is realized as an array, vector, list, or sequence.

High-level languages such as Python typically have JSON parsers available to parse JSON messages into language-native variables.