NEAT_JSON

Formats and "pretty prints" an object in JSON.

Syntax 

NEAT_JSON(object)

Usage examples 

Example 1

Input

1
{
2
"my_action": {
3
"object": {
4
"city": "Melbourne",
5
"country": "Australia",
6
"post_code": 3000,
7
"state": "Victoria"
8
}
9
}
10
}

Formula

NEAT_JSON(my_action.object)

Output

"{\n \"city\": \"Melbourne\",\n \"state\": \"Victoria\",\n \"post_code\": 3000,\n \"country\": \"Australia\"\n}"

Sample Actions 

Event transform
My Action
Event transform
NEAT_JSON

Select an action to inspect.

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

Was this helpful?