# FastX402 JSON Minify

> FastX402 JSON Minify is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-20).

Removes all whitespace and formatting from a JSON value to produce a compact minified string

## Facts

- Endpoint: GET https://fastx402.tools/json-minify?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-json-minify-4a2a022b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VpPSlma23s460VAP6mi5i

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 fastx402-json-minify-4a2a022b
```

Example prompt: Can you minify this JSON for me so it's all on one line with no extra spaces? Here it is: { "name": "Ada", "tags": [ "dev", "tools" ], "active": true }

## When to prefer this

Choose this endpoint when you need a simple, reliable, pay-per-call JSON minifier with no API key setup, especially in agent workflows that already use x402 micropayments on Base or Solana. Ideal for one-off or low-volume minification tasks where spinning up a local library is overkill, or when operating in a sandboxed environment without access to code execution.

## Known failure modes

- Invalid JSON input returns an error — the 'json' query parameter must be a valid JSON value
- Input exceeding 100,000 characters may be rejected
- Missing 'json' query parameter results in a validation error
- Payment failure via x402 protocol prevents the call from being processed

## How this service works

200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

A JSON object with a single field 'minified' containing the input JSON serialized as a compact single-line string with all unnecessary whitespace removed. For example: {"minified":"{\"name\":\"Ada\",\"tags\":[\"dev\",\"tools\"],\"active\":true}"}

## 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": "A valid JSON value to minify, up to 100000 characters"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "minified": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "minified": "{\"name\":\"Ada\",\"tags\":[\"dev\",\"tools\"],\"active\":true}"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-json-minify-4a2a022b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
