YAML to JSON: convert a YAML document into JSON

$0.01 per call · failed calls are never charged · no account or API key needed

Convert a YAML document (config files, Kubernetes manifests, OpenAPI specs, front matter) into JSON, parsed by the yaml library with anchors and aliases resolved (alias expansion capped against billion-laughs documents) and duplicate keys refused. Up to 100 KB. Use before feeding YAML into a JSON-only tool or schema check; for the reverse use json_to_yaml. Invalid YAML is a 400 with the parser's message, uncharged.

Run it free (25 free calls) Buy credits by card (from $5) Example result (JSON)

Try it with your own inputs

The YAML text (up to 100 KB)

Uses one of your 25 free calls. Nothing is charged, and a call that fails is not counted.

Inputs

NameTypeDescription
yaml (required)stringThe YAML text (up to 100 KB)

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/yaml/to-json?yaml=name%3A%20agent%0Aports%3A%0A%20%20-%2080%0A%20%20-%20443%0Aenabled%3A%20true"

Or one of your 25 free calls, no key:

curl "https://agent-data-tools.revmesh2074.workers.dev/yaml/to-json?yaml=name%3A%20agent%0Aports%3A%0A%20%20-%2080%0A%20%20-%20443%0Aenabled%3A%20true&trial=1"

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.

Example result

{
  "json": {
    "name": "agent",
    "ports": [
      80,
      443
    ],
    "enabled": true
  }
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is yaml_to_json, and the first 25 successful calls are free:

https://agent-data-tools.revmesh2074.workers.dev/mcp

Related tools