->JSON


conversion
Since v1.0.0
Available on all platforms
See also

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

Signature

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