...
Code Block | ||||
---|---|---|---|---|
| ||||
a = { "colors" : "many", "pi" : [3,1,4,1,5,6,9], "foo" : {"bar" : {"10":"I like cheese"}} }; c = a.delete(["foo", "bar", "10"]) // c = { "colors" : "many", // "pi" : [3,1,4,1,5,6,9], // "foo" : {"bar": {}} // } |
encode()
The encode()
operator returns a string containing the JSON representation of the data structure to which it is applied. For example:
...