## Syntax

`YAML_PARSE(text, [parse_date_or_time: FALSE], [version: 1])`

## Usage examples

|     |     |
| --- | --- |
| Input | 1<br>{<br>2<br>"my_action":"---\ntimeout:10\nqueues:\n-one\n-two\n-three\nscheduler:\nmax_workers:10\n"<br>3<br>}<br>Copy |
| Formula | `YAML_PARSE(my_action)` |
| Output | 1<br>{<br>2<br>"queues":[<br>3<br>"one",<br>4<br>"two",<br>5<br>"three"<br>6<br>],<br>7<br>"scheduler":{<br>8<br>"max_workers":10<br>9<br>},<br>10<br>"timeout":10<br>11<br>}<br>Copy |

|     |     |
| --- | --- |
| Input | 1<br>{<br>2<br>"my_action":"\nLinkedDate:2007-04-0112:00:00\n"<br>3<br>}<br>Copy |
| Formula | `YAML_PARSE(my_action, parse_date_or_time: TRUE)` |
| Output | 1<br>{<br>2<br>"LinkedDate":"2007-04-0112:00:00UTC"<br>3<br>}<br>Copy |

|     |     |
| --- | --- |
| Input | 1<br>{<br>2<br>"my_action":"---\nNestedObject:\nLinkedDate:2007-04-0112:00:00\nList:\n-:foo\n-bar\n"<br>3<br>}<br>Copy |
| Formula | `YAML_PARSE(my_action, version: 2)` |
| Output | 1<br>{<br>2<br>"NestedObject":{<br>3<br>"LinkedDate":"2007-04-0112:00:00UTC",<br>4<br>"List":[<br>5<br>"foo",<br>6<br>"bar"<br>7<br>]<br>8<br>}<br>9<br>}<br>Copy |

## Sample Actions

Event Transform

My Action

Event Transform

YAML_PARSE

### Select an action to inspect

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

Copy Actions
