JSON is a text-based message format suited to cross-language communication. Its named properties make messages human-readable and self-describing, so consumers can use the values they need and ignore others; this can make many schema changes backward-compatible. section 8.1.6
JSON Schema can specify property names, types, and requiredness, and can document and validate incoming and outgoing messages. Text formats add property-name overhead and can be inefficient to parse, especially for large messages; consider binary formats when efficiency and performance matter. section 8.1.6
Table 8.3 The benefits and drawbacks of text-based vs. binary formats for message payloads
|
Format |
Benefits |
Drawbacks |
|
Text |
|
|
|
Binary |
|
|
Compare text formats such as JSON with binary formats on readability, processing efficiency, and tooling. section 8.1.6









































