# MoneyTools YAML ↔ JSON Converter

> MoneyTools YAML ↔ JSON Converter is a paid API for AI agents from tools.moneytools.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-05).

Converts YAML (including multi-document) to JSON or JSON to YAML, with line-numbered error reporting on failure

## Facts

- Endpoint: POST https://tools.moneytools.dev/v1/yaml-json?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-05
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/moneytools-yaml-json-converter-b9664c19
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U9QQC2YLd82D3CgKifDQ-

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 moneytools-yaml-json-converter-b9664c19 -d '<json body>'
```

Example prompt: Convert this YAML to JSON for me: 'name: moneytools\ntools: 103\nenabled: true'

## When to prefer this

Choose this endpoint when you need reliable YAML↔JSON conversion with multi-document YAML support and line-numbered error diagnostics. It auto-detects direction, so you don't need to specify yaml-to-json or json-to-yaml explicitly. Prefer it over generic code execution for format conversion when you want a lightweight, pay-per-use call with no failure charges and structured error output.

## Known failure modes

- Invalid YAML syntax — returns line-numbered error indicating the problematic line
- Invalid JSON input — returns parse error with position context
- Ambiguous direction when neither clearly YAML nor JSON — may misdetect format
- Free tier exhausted (10/day) with no payment configured — returns HTTP 402 Payment Required
- Malformed request body — returns 400-level error

## How this service works

YAML ↔ JSON converter: YAML (multi-document, with line-numbered errors) to JSON, or JSON to YAML. Free tier 10/day; then $0.001 via x402 (HTTP 402 + PAYMENT-REQUIRED) or X-API-Key credits. Not charged on failure. $0.001 USDC per call via x402 on Base. Run by MoneyTools.

## Output

Returns the converted output as a string in the target format (JSON or YAML). On error, returns a structured error response with line-numbered details indicating exactly where the input failed to parse, so the agent can report or fix the problem. Not charged on failure.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "examples": [
    "name: moneytools\ntools: 103"
   ],
   "description": "YAML or JSON text"
  },
  "direction": {
   "type": "string",
   "description": "yaml-to-json | json-to-yaml (auto)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

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