JSON
|
|
Encode any value to a JSON string. |
|
Encode arrays and primitives. |
|
Decode JSON strings back to pyr values. |
|
Round-trip: decode(encode(v)) preserves structure. |
|
$ pyr run json.pyr {"host":"localhost","port":8080,"debug":true} [1,2,3] "hello" alice 30 [10, 20, 30] |