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:

Is Valid JSON

Returns a boolean type if a JSON string is valid.

Expression:

JSON_ISVALID(string)

Return:

boolean

Example of usage:

Last updated

Was this helpful?