1. Docs
  2. Formulas
  3. Functions

LEGACY_STRINGIFY

Converts an object to text in the legacy {"key"=>"value"} format, which isn't valid JSON. TEXT uses the same format for objects. To get JSON text, use TO_JSON instead.

Categories: Text

Syntax

LEGACY_STRINGIFY(object)

Examples

Example 1

Input

1
{
2
"my_action": {
3
"data": {
4
"foo": "bar"
5
}
6
}
7
}

Formula

LEGACY_STRINGIFY(my_action.data)

Output

"{\"foo\"=>\"bar\"}"

Example 2: Use TO_JSON for valid JSON text

Input

1
{
2
"my_action": {
3
"data": {
4
"foo": "bar"
5
}
6
}
7
}

Formula

TO_JSON(my_action.data)

Output

"{\"foo\": ""
Was this helpful?