Data Transform
YAML <-> JSON API
Converts between a YAML subset (block maps/lists, scalars, comments) and JSON in either direction. Answers 'How do I convert YAML to JSON (or back)?', 'How do I parse simple YAML config without a library?'.
Price$0.02per request
MethodPOST
Route/v1/data-transform/yaml-json
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
data-transformyamljsonconvertconfigparsewrangle
API URL
Integration docshttps://x402.hexl.dev/v1/data-transform/yaml-jsonExample request
{
"data": "name: Ada\ntags:\n - x\n - y\nactive: true",
"direction": "yaml-to-json"
}Example response
{
"direction": "yaml-to-json",
"result": {
"name": "Ada",
"tags": [
"x",
"y"
],
"active": true
}
}Input schema
{
"type": "object",
"required": [
"data",
"direction"
],
"properties": {
"data": {
"type": "string",
"examples": [
"name: Ada\ntags:\n - x\n - y\nactive: true"
]
},
"direction": {
"type": "string",
"examples": [
"yaml-to-json"
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}