Engine

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

12.5 written, "12.5" or 12.5 read

the number 12.5, exactly

Numbers are written as texts and read from texts or numbers.

"5400" as a duration, "PT1H30M"

5400 seconds; PT1H30M is not a duration

Durations are seconds not iso 8601.

"2026-12-01T10:00:00.5Z", "2026-12-01T10:00:00+01:00"

a timestamp with half a second; the offset form is not read

Dates and timestamps have fixed text forms.

Numbers are exact.