Skip to content

Convert JSON to YAML

Turn a JSON object into a readable YAML document.

Install in Serialize

What it can do

  • Parse JSON values
  • Render YAML scalars and lists
  • Keep the data model intact

How the recipe works

JSON to YAML

Parse the JSON tree and serialize the same values as YAML.

Demonstration

Sample input

{"service":"serialize","local":true,"ports":[443,8443]}

Expected result

service: serialize

When to use it

  • Configuration migration
  • Documentation examples
  • Human-readable reviews

Adapt it

Run YAML to JSON in the opposite direction when a machine interface requires JSON.

Source and verification

Adapted from GCHQ CyberChef Node API examples. The explanation and sample are written for Serialize, use synthetic or documentation-safe data, and are checked against the current operation catalogue. The workflow runs locally without an external API call.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close