Search…
⌃K

JSON

JSON Stringify

Serializes arbitrary data to a JSON format.

Expression:

JSON_STRINGIFY(data: any, spaces?: number)

Return:

JSON_format: string

Example of usage:

JSON_STRINGIFY([{name: "name"}, {age: "39"}], 1)
Return value:
"[\n {\n \"name\": \"name\"\n },\n {\n \"age\": \"39\"\n }\n]"

JSON Parse

Parses a string as a JSON into data.

Expression:

JSON_PARSE(string)

Return:

JSON_parse: string

Example of usage:

JSON_PARSE("[{\"name\":\"name\"},{\"age\":\"39\"}]")
Return value:
[{"name":"name"},{"age":"39"}]

Is Valid JSON

Returns a boolean type if a JSON string is valid.

Expression:

JSON_ISVALID(string)

Return:

boolean

Example of usage:

JSON_ISVALID("[{\"name\": \"name\"}, {\"age\": \"39\"}]")
Return value:
true
Last modified 6mo ago