# YAML to JSON Converter

> YAML to JSON Converter is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-03).

Converts a YAML document (config files, Kubernetes manifests, OpenAPI specs, front matter) into a parsed JSON object, with anchors/aliases resolved and duplicate keys rejected

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/yaml/to-json?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-yaml-to-json-converter-a790403d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oeQ0Nznaihgm21f5ZQFvr

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-data-tools-revmesh2074-workers-dev-yaml-to-json-converter-a790403d
```

Example prompt: Can you convert this YAML into JSON for me? Here's the content: `name: myapp\nports:\n  - 80\n  - 443\nenabled: true`

## When to prefer this

Use this endpoint when you need to feed a YAML document into a JSON-only tool, schema validator, or downstream API. It handles anchor/alias resolution automatically and safely guards against malicious alias bombs. It also validates YAML syntax for free on failure. Prefer this over manual parsing or shell-based tools when operating in an agent context without a local YAML parser, or when you need a quick one-call conversion at low cost ($0.01).

## Known failure modes

- Invalid YAML syntax returns HTTP 400 with the parser's error message (not charged)
- Input exceeds 100 KB limit returns an error
- Billion-laughs / alias expansion bomb documents are rejected
- Documents with duplicate keys are rejected with a 400 error
- Malformed query parameter (missing 'yaml' field) returns a 400

## How this service works

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.

## Output

Returns a JSON object that is the fully parsed representation of the input YAML document, with all anchors and aliases expanded into their resolved values, and duplicate keys rejected. The response wraps the parsed data under a 'json' key.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "yaml"
 ],
 "properties": {
  "yaml": {
   "type": "string",
   "description": "The YAML text (up to 100 KB)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "json": {
   "type": "object",
   "properties": {
    "name": {
     "type": "string"
    },
    "ports": {
     "type": "array",
     "items": {
      "type": "number"
     }
    },
    "enabled": {
     "type": "boolean"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-yaml-to-json-converter-a790403d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
