# AgentShelf JSON to YAML Converter

> AgentShelf JSON to YAML 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 JSON value to its equivalent YAML representation, entirely offline with no network or LLM calls.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/json-to-yaml?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/agentshelf-json-to-yaml-converter-2b3cb2b9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qFxeK9BEtzubgmPyMO-Ul

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

Example prompt: Convert this JSON object to YAML for me: {"name": "Alice", "age": 30, "roles": ["admin", "user"]}.

## When to prefer this

Choose this endpoint when you need a fast, deterministic, offline JSON-to-YAML conversion without any LLM or network dependency. Ideal for agents processing configuration files, Kubernetes manifests, CI/CD pipelines, or any developer tooling context where YAML is the required serialization format. Use the free sandbox endpoint POST /v1/sandbox/json-to-yaml first if available; fall back to this paid endpoint when the sandbox is unavailable or you need production reliability.

## Known failure modes

- Invalid or malformed JSON input returns an error response
- Missing or null 'json' field in request body may return a validation error
- Deeply nested or very large JSON objects may hit size limits
- Payment of exactly $0.001 USDC required; incorrect payment amount will result in a 402 rejection

## How this service works

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

## Output

A YAML-formatted string that is the semantic equivalent of the input JSON value, with proper YAML indentation, list notation, and scalar types. The conversion is deterministic and performed without any network calls or LLM inference.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "json": {
   "examples": [
    {
     "name": "Ada"
    }
   ],
   "description": "JSON value to convert to YAML. No fetch."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-json-to-yaml-converter-2b3cb2b9/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)
