# TOML to JSON Converter

> TOML 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 TOML configuration files (Cargo.toml, pyproject.toml, wrangler.toml, etc.) into JSON, handling tables, nested dotted keys, arrays of tables, inline tables, arrays, strings, integers, floats, booleans, and dates.

## Facts

- Endpoint: GET https://intel.rallylive.ca/dev/toml-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/toml-to-json-converter-fa1b4a49
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vhSxJZen2FbxbV2Hh-_l1

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 toml-to-json-converter-fa1b4a49
```

Example prompt: Can you convert this Cargo.toml content to JSON for me? I need to parse its dependencies and tables programmatically.

## When to prefer this

Choose this endpoint when you need a reliable, hosted, pay-per-call TOML-to-JSON conversion without setting up a local parser — especially useful in agent pipelines or serverless environments where installing TOML libraries is inconvenient. Well-suited for processing Cargo.toml, pyproject.toml, and wrangler.toml config files.

## Known failure modes

- Invalid or malformed TOML input causes a parse error response
- Missing required 'input' parameter returns a validation error
- TOML features outside the supported subset may not convert correctly
- Network timeout if the service is unreachable

## How this service works

TOML to JSON converter: tables, nested dotted keys, arrays of tables [[x]], inline tables, arrays, strings (basic, literal, multi-line), integers with underscores, floats, booleans and dates (kept as strings). Reads Cargo.toml, pyproject.toml, wrangler.toml and similar configs. $0.01 per conversion.

## Output

Returns a JSON object that is the fully converted representation of the input TOML document, preserving all table structures, nested dotted keys, arrays of tables ([[x]]), inline tables, typed values (integers, floats, booleans), and dates (as strings).

## 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/toml-to-json-converter-fa1b4a49/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)
