1. Docs
  2. Formulas
  3. Functions

IS_JSON

Checks if a text value is valid JSON.

Categories: Text

Syntax

IS_JSON(text)

Examples

Example 1

Input

1
{
2
"my_action": {
3
"message": "{\"foo\": \"bar\"}"
4
}
5
}

Formula

IS_JSON(my_action.message)

Output

true

Example 2

Input

1
{
2
"my_action": {
3
"message": "{\"foo\":"
4
}
5
}

Formula

IS_JSON(my_action.message)

Output

false

Sample actions

Event Transform
IS_JSON

Select an action to inspect

You can also click "Copy action" and paste them in your Tines story to see how they work.

Was this helpful?
IS_JSON | Docs | Tines