IronFlowDocs

yaml_stringify

Convert a JSON value from context to a YAML string.

Parameters

source_keystringrequired
Context key containing the JSON value to convert.
output_keystringdefault "yaml"
Context key for the YAML string output.

Context Output

  • <output_key> (default yaml) — the YAML string representation.

Example

local flow = Flow.new("stringify_yaml")

flow:step("prepare", nodes.json_parse({
    source_key = "raw_json",
    output_key = "data"
}))

flow:step("to_yaml", nodes.yaml_stringify({
    source_key = "data",
    output_key = "yaml_output"
})):depends_on("prepare")

flow:step("done", nodes.log({
    message = "YAML:\n${ctx.yaml_output}"
})):depends_on("to_yaml")

return flow

IronFlow documentation

Find the next step

Type a keyword to search the documentation.

to move · Enter to open · Esc to close