DevTools.at
API Documentation
POST/api/v1/yaml-json

YAML/JSON

Convert between YAML and JSON formats

converters

Parameters

inputstring|object
Yes

YAML string or JSON object

actionstring
No

'yamlToJson' or 'jsonToYaml'

Default: yamlToJson

Example Request

curl -X POST https://devtools.at/api/v1/yaml-json \
  -H "Content-Type: application/json" \
  -d '{"input":"name: John\nage: 30","action":"yamlToJson"}'

Try it out

Test this endpoint directly in your browser

Response
Click "Execute Request" to see the response