Loading

->JSON

conversion

The ->JSON functions serialize structures containing numbers, strings, booleans, lists, vlists and maps which do not reference the same list/map multiple times.

->JSON is available since version 1.0.0.

See also

Signatures

Examples

[ true 3.14 42 'foo' ] 'list' STORE { 'key1' false 'key2' 3.14 } 'map' STORE $list ->JSON $map ->JSON [ $list $map ] ->JSON // This one will fail (list is referenced twice in the object) //[ $list 42 { 'key3' $list } ] ->JSON