# YAML to JSON Converter

> YAML to JSON Converter is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Converts block-style YAML text to JSON, returning the parsed JSON object and top-level keys, with support for nested maps, lists, scalars, quoted strings, comments, and literal/folded block scalars.

## Facts

- Endpoint: GET https://intel.rallylive.ca/dev/yaml-to-json
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/yaml-to-json-converter-a9404f4d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DlSyqEoDmgNTeZZ9dz6_C

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-a9404f4d
```

Example prompt: Can you convert this Kubernetes deployment manifest YAML into JSON for me so I can see the top-level keys and the parsed structure?

## When to prefer this

Choose this endpoint when you need a quick, low-cost ($0.01) server-side conversion of block-style YAML — especially CI configs, Kubernetes manifests, or docker-compose files — into JSON with top-level key extraction. Prefer this over client-side parsing when you want a stateless, network-accessible conversion without managing a YAML library. Not suitable for YAML with anchors/aliases or multi-document streams.

## Known failure modes

- YAML with anchors or aliases will fail as they are not supported
- Multi-document YAML files (using --- separators) are not supported
- Malformed or invalid YAML syntax will produce a parse error
- Inline JSON within YAML may produce unexpected results in edge cases
- Empty or whitespace-only input may return an empty or null result

## How this service works

YAML to JSON converter for block-style YAML (nested maps, lists, scalars with type inference, quoted strings, comments, literal | and folded > blocks, inline JSON arrays/objects). Returns the parsed JSON and the top-level keys. Ideal for reading CI configs, Kubernetes manifests and docker-compose files. Anchors/aliases and multi-document files are not supported. $0.01 per conversion.

## Output

Returns the fully parsed JSON representation of the input YAML along with a list of top-level keys found in the document. Supports nested maps, lists, scalar types with type inference, quoted strings, comments (stripped), and literal (|) and folded (>) block scalars. Does not support YAML anchors/aliases or multi-document files.

## 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": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "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/yaml-to-json-converter-a9404f4d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
