Comment on page
JSON
Serializes arbitrary data to a JSON format.
JSON_STRINGIFY(data: any, spaces?: number)
JSON_format: string
JSON_STRINGIFY([{name: "name"}, {age: "39"}], 1)
Return value:
"[\n {\n \"name\": \"name\"\n },\n {\n \"age\": \"39\"\n }\n]"
Parses a string as a JSON into data.
JSON_PARSE(string)
JSON_parse: string
JSON_PARSE("[{\"name\":\"name\"},{\"age\":\"39\"}]")
Return value:
[{"name":"name"},{"age":"39"}]
Returns a boolean type if a JSON string is valid.
JSON_ISVALID(string)
boolean
JSON_ISVALID("[{\"name\": \"name\"}, {\"age\": \"39\"}]")
Return value:
true
Last modified 1yr ago