> For the complete documentation index, see [llms.txt](https://maya-admin.gitbook.io/building-skills/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://maya-admin.gitbook.io/building-skills/product/node-library/parser/yaml.md).

# YAML

Converts between a YAML formatted string and its JavaScript object representation, in either direction.

### Inputs

* `payload` (object | string) : A JavaScript object or YAML string.

### Outputs

* `payload` (object | string) :
  * If the input is a YAML string it tries to parse it to a JavaScript object.
  * If the input is a JavaScript object it creates a YAML string.

![](https://1551505950-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mkaq90Au3F8Kz0qIFzO%2Fuploads%2Fgit-blob-855eb1456ab39d4982aa2289e92c2305635cbf80%2Fimage.png?alt=media)

###
