Atom

json module

Read JSON into Atom values and serialize Atom values as JSON.

Import it with 'use json'.

Atom
use json
print(json.decode('42'))
Output
42

Requires ATOM_WITH_JSON. JSON values map to Atom null, booleans, signed or unsigned integers, floating numbers, strings, arrays and dictionaries. Object keys must be text. JSON string decoding preserves string representation even for a one-scalar string.

Functions