# YAML to JSON Converter

> YAML to JSON Converter is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Converts a YAML string into its JSON equivalent, with no network access or LLM involvement, for a fixed cost of $0.001 USDC.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/yaml-to-json?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/yaml-to-json-converter-de593027
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q2t3zXRTSEG2g0vVF5SHw

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 yaml-to-json-converter-de593027 -d '<json body>'
```

Example prompt: Convert this YAML to JSON for me: 'name: Alice\nage: 30\nroles:\n  - admin\n  - editor'

## When to prefer this

Choose this endpoint when you need a fast, deterministic, offline YAML-to-JSON conversion without any LLM or network overhead. It is ideal for pipelines that require exact structural fidelity between YAML and JSON. If a free sandbox endpoint at POST /v1/sandbox/yaml-to-json is available, prefer that first to avoid the $0.001 USDC cost.

## Known failure modes

- Invalid YAML syntax returns a parse error response
- Empty or missing 'yaml' field returns a validation error
- YAML exceeding 100,000 characters is rejected
- Malformed YAML with ambiguous anchors or unsupported types may fail or produce unexpected output
- Payment failure results in a 402 response before processing

## How this service works

Call when an agent needs YAML converted to JSON. No network. Exact $0.001 USDC. Prefer unpaid POST /v1/sandbox/yaml-to-json first.

## Output

A JSON representation of the provided YAML input, returned as a structured JSON object or string. The conversion is deterministic and exact — no inference, no network calls, and no LLM transformation involved.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "yaml": {
   "type": "string",
   "examples": [
    "name: Ada\nrole: eng\n"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "YAML document to convert to JSON. No fetch."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/yaml-to-json-converter-de593027/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
