# YAML ⇄ JSON converter

Convert YAML to JSON and JSON to YAML, with errors that point to the problem.

## How it works

YAML is a superset of JSON, so any JSON converts to YAML. Comments in YAML are dropped when converting to JSON, because JSON has none.

## Questions

### Why does my YAML fail?

Indentation is usually the cause: YAML uses spaces, never tabs, and the levels must line up.

### Will keys stay in order?

Yes, keys keep the order they were written in.

## Related tools

- [Regex tester](https://powertraces.com/tools/regex-tester)
- [Diff checker](https://powertraces.com/tools/diff-checker)
- [cURL to code converter](https://powertraces.com/tools/curl-to-code)
- [SQL formatter](https://powertraces.com/tools/sql-formatter)

[All tools](https://powertraces.com/tools)
