Convert YAML to JSON to inspect the normalized data model.
Section: Parser and conversion debugging
Round-trip through JSON
bash
bash
yq -o=json '.' config.yaml | jq '.'Explanation
This helps you see the actual parsed structure separate from YAML formatting quirks.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Parser and conversion debugging
Debug with Python safe_load
Confirm whether a parser can load a YAML document.
Review YAML changes carefully
Use Git diff modes that make structural edits easier to inspect.