githubEdit

YAML parse transform action

Use case

An API has returned a YAML formatted string and you would like to convert it to a JSON object.

Overview

Parses a YAML string and returns the resulting data structure in JSON.

Parameters

Parameter
Description
Required

YAML Input

The YAML string to parse.

circle-info

This transform is utilizing the yaml_parse filter, which will only work with one document.

If your YAML string contains multiple documents you should process them individually.

Usage

chevron-rightExample: Parse a YAML stringhashtag

YAML input:

Results output

Last updated

Was this helpful?