# UOS Genesis compact_json

> UOS Genesis compact_json is a paid API for AI agents from genesis.palsus2023.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Compacts (minifies) a JSON payload by removing unnecessary whitespace and formatting

## Facts

- Endpoint: POST https://genesis.palsus2023.workers.dev/v1/compact_json
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uos-genesis-compact-json-5efc7607
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H7j0hQExImpoO82mwSvFJ

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 uos-genesis-compact-json-5efc7607 -d '<json body>'
```

Example prompt: Can you compact this JSON for me — strip all the whitespace and indentation so it's a single dense line: { "name": "Alice", "age": 30, "city": "New York" }?

## When to prefer this

Use this endpoint when you need a simple, reliable JSON minification utility with a predictable per-call cost and no setup. Prefer it over client-side minification when operating in agent pipelines where local code execution is unavailable, or when you need a consistent, auditable transformation step.

## Known failure modes

- Invalid or malformed JSON input returns an error response
- Empty input may return an error or empty result
- Very large JSON payloads may hit size limits
- Non-JSON content type or encoding issues may cause parsing failures

## How this service works

UOS Genesis machine utility: compact_json

## Output

Returns the input JSON as a compacted single-line string with all unnecessary whitespace, newlines, and indentation removed, preserving the original data structure and values exactly.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "input": {
       "type": "string",
       "description": "Valid JSON text to minify while preserving the underlying data structure."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object"
  }
 },
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uos-genesis-compact-json-5efc7607/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from genesis.palsus2023.workers.dev](https://www.zero.xyz/host/genesis.palsus2023.workers.dev/llms.txt)
