Guides
YAML vs JSON for LLM prompts: size, tokens and reliable output
Why YAML is usually shorter than JSON in LLM prompts, how to measure the token difference yourself, and why JSON is still the right format for model output.
Guides on JSON, YAML and configuration files for developers and DevOps teams.
Showing 1–6 of 6 articles
Guides
Why YAML is usually shorter than JSON in LLM prompts, how to measure the token difference yourself, and why JSON is still the right format for model output.
Comparisons
The same config in JSON, YAML and TOML, compared on comments, types, dates, nesting and tooling, with a clear rule for when each format fits.
Troubleshooting
What kubectl and Helm mean by "error converting YAML to JSON", the seven messages behind it, and how to fix each one, with before and after examples.
DevOps
Turn kubectl JSON output or generated JSON into clean, multi-document YAML manifests that are ready to commit and apply.
Guides
The Norway problem, vanishing leading zeros, rounded IDs and other surprises that appear when JSON becomes YAML, with the fix for each.
Basics
Both formats describe the same data. Here is how they differ in syntax, tooling and risk, and a simple rule for choosing between them.