In this Page
...
Description | Parses a string as JSON. This is similar to the JavaScript .parse(). Note | . | |
---|---|---|---|
Syntax |
| ||
Examples | Expression: Result: The string "null" is converted into the null value Expression: Result: The string is converted into an array:
|
...
Description | Converts a JavaScript value to a JSON string. This is similar to the JavaScript .stringify(). Note | . | |
---|---|---|---|
Syntax |
| ||
Examples | Expression: JSON.stringify(null) Result: The null value is converted into the string "null". Expression: JSON.stringify(Date.now()) Result: The Date value is converted into a string, such as "2017-03-22T17:58:03.485Z". Expression: JSON.stringify($array)
Result: The array value is converted into the string "[1,2,3.1,"one",true]". |
...