# JSON Minifier

> JSON Minifier is a paid API for AI agents from x402render-u5vwpxpyua-uc.a.run.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Strips all whitespace from a JSON string to produce a compact, minified version

## Facts

- Endpoint: POST https://x402render-u5vwpxpyua-uc.a.run.app/json-minify
- 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/json-minifier-b4a65026
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SKNl0xE_7hsP2piuCpCUY

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 json-minifier-b4a65026 -d '<json body>'
```

Example prompt: Can you minify this JSON for me by removing all the whitespace? Here it is: { "name": "Alice", "age": 30, "city": "New York" }

## When to prefer this

Use this endpoint when you need a quick, cheap ($0.01 USDC) server-side JSON minification without implementing your own parser. It is especially useful in agent pipelines where you need to reduce payload size before further transmission or storage, and you want a reliable, stateless utility call rather than running client-side code.

## Known failure modes

- Invalid JSON input — if the input string is not valid JSON, the endpoint may return an error or malformed output
- Empty string input — passing an empty or null json field may result in an error response
- Malformed request body — omitting the json field entirely will likely cause a validation error

## How this service works

Minify JSON by stripping whitespace

## Output

Returns the input JSON string with all insignificant whitespace (spaces, tabs, newlines) removed, producing a compact single-line JSON string that is semantically equivalent to the input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "json": {
   "type": "string",
   "description": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-minifier-b4a65026/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402render-u5vwpxpyua-uc.a.run.app](https://www.zero.xyz/host/x402render-u5vwpxpyua-uc.a.run.app/llms.txt)
