# Toolshed YAML-to-JSON Converter

> Toolshed YAML-to-JSON Converter is a paid API for AI agents from toolshed.lemon-agent.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Converts a YAML document to JSON format via a simple HTTP POST call, paid per-call in USDC with no account required.

## Facts

- Endpoint: POST https://toolshed.lemon-agent.dev/convert/yaml-json
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toolshed-yaml-to-json-converter-c52725f2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s73MVLRoN4ovM4Z7GaipF

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

Example prompt: Convert this YAML to JSON for me: 'name: toolshed\ntags:\n  - x402\nenabled: true'

## When to prefer this

Choose this endpoint when you need a lightweight, no-signup, pay-per-call YAML-to-JSON conversion with no rate limits tied to an account. Ideal for agent workflows that occasionally need format conversion without maintaining API credentials. Prefer over self-hosted parsers when you want zero infrastructure overhead and are already using x402 micropayments.

## Known failure modes

- Malformed or invalid YAML input returns an error response
- Missing or empty request body may result in a 400 Bad Request
- Payment failure or insufficient USDC balance blocks the call via x402 protocol
- Deeply nested or extremely large YAML documents may time out or be rejected

## How this service works

YAML to JSON conversion

## Output

Returns a JSON-formatted string equivalent of the input YAML document, preserving all keys, values, and nested structure. The response body is application/json text.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "string",
     "maxLength": 262144,
     "description": "the raw YAML file as the request body, up to 256 KB"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "const": "POST"
    },
    "bodyType": {
     "type": "string",
     "const": "text"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "format"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "text"
    },
    "format": {
     "type": "string",
     "const": "application/json",
     "description": "the converted JSON file as the response body (application/json)"
    },
    "example": {
     "type": "string",
     "description": "the sample request body above, converted — what a the converted JSON file as the response body (application/json) looks like"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "text",
 "format": "application/json",
 "example": "{\n  \"name\": \"toolshed\",\n  \"tags\": [\n    \"x402\"\n  ]\n}\n"
}
```

## More

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