YAML to JSON Converter
Paste YAML content to convert it to JSON. Supports multi-document YAML (separated by ---), anchors, aliases, and nested structures. Great for converting Kubernetes manifests, CI/CD configs, and other YAML files.
advanced options
returns
- data.json
- The converted JSON, as a string.
- data.document_count
- Number of YAML documents in the input.
- data.keys
- Count of keys across the parsed data.
Fill in the fields and send a request. The response lands here.
Run it from your code
A temporary key takes one request and lasts seven days at 20 calls a day. Register and it becomes 75 a day, still free.
$ curl -sX POST "https://apixies.io/api/v1/yaml-to-json" \ -H "X-API-Key: $APIXIES_KEY" \ -H "Content-Type: application/json" \ -d '{"yaml":"..."}' | jq '.data.json'
questions
Does this handle multi-document YAML?
Yes. If your YAML contains --- separators, each document is parsed separately and returned as a JSON array. Single documents return a JSON object.
How does YAML type coercion work?
YAML converts "true", "false", "yes", "no" to booleans and "null" to null. If you need these as strings, wrap them in quotes in your YAML input.