The functions for converting data from one format to another are described here.


Json( obj o ) str

The Json function converts a variable of obj type into json string.

JsonToObj( str s ) obj

The JsonToObj function converts json string into a variable of the obj type.

run str {
return Json(JsonToObj(`{
"int": 1234,
"str": "value",
"float": -45.67,
"list":[{"on": true},
"sub 2",
"sub 3",
"q": "OK"
// Result {"float":-45.67,"int":1234,"list":[{"on":true},"sub 2","sub 3",{"q":"OK"}],"str":"value"}