YAML icon

YAML

Convert data to YAML or from YAML

Extract From YAML

AI-generated

Summary

Extract YAML data from a specified binary file field, decode it using an optional encoding, parse the YAML into JSON, and place it into a designated output field within the JSON of the returned items.

Inputs

  • Input Binary Field (required) — The name of the input binary field that contains the YAML file data to be processed (default 'data').
  • Destination Output Field (required) — The name of the JSON output field where the extracted YAML data will be placed (default 'data').
  • Options — Options to specify file encoding (default UTF-8), whether to strip the BOM (for certain encodings), and how to preserve the source data: include JSON, binary, or both.

Output shape

a list of items, each with JSON containing the parsed YAML data under the specified destination field, and optional binary data depending on options.

If the specified binary field does not exist or cannot be parsed as YAML, the operation skips or throws an error. Errors can be captured via 'continue on fail' mode. Binary data input is decoded with the given encoding and BOM stripping before YAML parsing. The original JSON and/or binary data can optionally be preserved in the output items.

Links

Discussion