Skip to main content

Module json

Module json 

Source
Expand description

The JSON text encoding of datamodel values in journal entries, snapshots and dead letters.

Plain JSON for everything JSON can say, with object keys in insertion order; undefined and non-finite numbers, which JSON cannot say, are tagged objects {"$vt": "undefined"}, {"$vt": "NaN"}, {"$vt": "Infinity"} and {"$vt": "-Infinity"}. Decoding is the exact inverse, so a payload read back from a journal equals the payload that was recorded.

Structs§

JsonValue
A Value that (de)serializes as the Vertep JSON encoding.

Functions§

from_text
The value encoded by text.
to_text
The JSON text of v.