# Bolt JSON Formatter

> Bolt JSON Formatter is a paid API for AI agents from bolt.orbonomy.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Parses and pretty-prints a JSON string, returning a structured object with optional indentation control

## Facts

- Endpoint: POST https://bolt.orbonomy.xyz/api/json-format
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bolt-json-formatter-f6a0a7bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JJlcQQlTHpSLBCP8TR-l_

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 bolt-json-formatter-f6a0a7bf -d '<json body>'
```

Example prompt: Can you format this JSON string for me with 2 spaces of indentation: '{"name":"Alice","age":30,"city":"New York"}'?

## When to prefer this

Use this endpoint when you need to parse or pretty-print a raw JSON string into a structured object, especially when you want to control indentation. Prefer this over manual parsing when operating within the Bolt x402-enabled toolkit ecosystem and paying per-request in USDC is acceptable.

## Known failure modes

- Invalid JSON string input returns success: false
- Malformed or non-string json field causes parsing failure
- Negative or non-integer indent value may cause unexpected formatting
- Empty string input returns parsing error

## How this service works

Utility toolkit for AI agents. 54 endpoints — tools, data, and AI processing. Pay per request in USDC via x402.

## Output

Returns a JSON object containing a 'data' field with the parsed JSON as a structured object, and a 'success' boolean indicating whether the operation succeeded.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "json"
 ],
 "properties": {
  "json": {
   "type": "string"
  },
  "indent": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bolt-json-formatter-f6a0a7bf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bolt.orbonomy.xyz](https://www.zero.xyz/host/bolt.orbonomy.xyz/llms.txt)
