Skip to main content
Reads a piece of YAML text and turns it into structured data you can map field by field. Use this when a value arrives as a YAML document, such as a configuration block or a feed from a system that exports YAML, and you want to work with its keys and values as ordinary fields instead of one long string. Each YAML key becomes a field, and nested or list structures come through as nested data. If the incoming text is in a character set other than UTF-8, you can turn on the encoding option to have it converted first.

Fields

Sample data

This parser takes no settings of its own. It reads the YAML text and returns the structured data it describes. Input:
{
    "payload": "id: 1001\ncustomer: Acme\ntotal: 49.95\n"
}
Output:
{
    "payload": {
        "id": 1001,
        "customer": "Acme",
        "total": 49.95
    }
}
Each YAML key becomes a field, and number-like values come back as numbers.