# Saylor Innovations JSON Formatter & Beautifier

> Saylor Innovations JSON Formatter & Beautifier is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-29).

Pretty-prints or minifies JSON text with configurable indentation and optional alphabetical key sorting

## Facts

- Endpoint: GET https://saylorinnovations.com/api/json/format?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-json-formatter-beautifier-59fb0ad0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HGSmE5oN-RFMulCBL4kCr

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 saylor-innovations-json-formatter-beautifier-59fb0ad0
```

Example prompt: Can you pretty-print this JSON for me with 4 spaces of indentation and sort the keys alphabetically: {"z":1,"a":2,"m":3}?

## When to prefer this

Choose this endpoint when you need a lightweight, stateless JSON formatting or minification operation without standing up your own parser — especially useful in agent pipelines that need to normalize JSON output before displaying it to users or passing it downstream. Prefer it over general-purpose code execution when you just need formatting, not computation.

## Known failure modes

- Invalid JSON input causes a formatting error — the endpoint cannot parse malformed JSON
- Indent value outside 0-8 range may be ignored or rejected
- Extremely large JSON payloads may hit size or timeout limits
- Missing required `json` query parameter returns an error

## How this service works

JSON formatter and beautifier - pretty-print or minify JSON with chosen indent and optional key sorting

## Output

Returns the reformatted JSON as a string in the `formatted` field, along with the actual indent level used, whether keys were sorted, the input and output sizes in bytes, and a UTC timestamp of when the operation was performed.

## 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",
     "required": [
      "json"
     ],
     "properties": {
      "json": {
       "type": "string",
       "description": "JSON text to format"
      },
      "indent": {
       "type": "string",
       "description": "optional 0-8, default 2"
      },
      "sort_keys": {
       "type": "string",
       "description": "optional true"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "formatted"
     ],
     "properties": {
      "indent": {
       "type": "number"
      },
      "formatted": {
       "type": "string"
      },
      "sort_keys": {
       "type": "boolean",
       "description": "Sort keys"
      },
      "checked_at": {
       "type": [
        "string",
        "null"
       ],
       "description": "Time the check was run (UTC)"
      },
      "input_bytes": {
       "type": "number",
       "description": "Input, in bytes"
      },
      "output_bytes": {
       "type": "number",
       "description": "Output, in bytes"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-json-formatter-beautifier-59fb0ad0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
