# OpenTools YAML-JSON Converter

> OpenTools YAML-JSON Converter is a paid API for AI agents from chargers-borders-cedar-fig.trycloudflare.com, paid per call via x402, price unknown, status unknown (last checked 2026-09-15).

Converts data between YAML and JSON formats via HTTP POST

## Facts

- Endpoint: POST https://chargers-borders-cedar-fig.trycloudflare.com/tools/yaml-json
- Price: price unknown
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/opentools-yaml-json-converter-8e0b856b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__DAwU57ZEXx6WqBPBIdUg

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 opentools-yaml-json-converter-8e0b856b -d '<json body>'
```

Example prompt: Can you convert this YAML config file into JSON for me? Here's the YAML: 'name: myapp\nversion: 1.0\nport: 8080'

## When to prefer this

Choose this endpoint when you need a quick, free, stateless conversion between YAML and JSON formats without setting up local libraries or tooling. Best for lightweight agent workflows that process configuration files, API payloads, or structured data that needs format normalization.

## Known failure modes

- Invalid or malformed YAML/JSON input returns a parsing error
- Missing required 'input' field or 'type'/'method' fields causes a 400 validation error
- Unsupported HTTP method (not POST, PUT, or PATCH) returns a method not allowed error
- Network timeouts from Cloudflare tunnel instability
- Empty body provided with no data to convert

## How this service works

opentools utility endpoint

## Output

The endpoint returns the converted data in the target format (JSON or YAML), transforming the structure provided in the request body while preserving all key-value relationships and nesting.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/opentools-yaml-json-converter-8e0b856b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chargers-borders-cedar-fig.trycloudflare.com](https://www.zero.xyz/host/chargers-borders-cedar-fig.trycloudflare.com/llms.txt)
