5.2. Numbers, dates and timestamps
How values are written in JSON (encodeValue, decodeValue): numbers and durations as number texts, dates and timestamps as ISO 8601 texts, a field read by its type in the schema. A client whose JSON numbers are floats loses nothing when the engine writes numbers as texts; durations are seconds, not ISO 8601 durations (PT1H30M), because their months and years have no fixed length.
Wire | Reads as | Claim |
|---|---|---|
| the number 12.5, exactly | Numbers are written as texts and read from texts or numbers. |
|
5400 seconds; | |
| a timestamp with half a second; the offset form is not read |