# JSON Drop-Null Transform

> JSON Drop-Null Transform is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.006/call, status unknown (last checked 2026-10-02).

Rewrites a JSON string by removing all null-valued keys, returning a compact null-free JSON object

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/json-drop-null?utm_source=zero.xyz
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-drop-null-transform-cfcc9268
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a9AFoeqRDwXiCpT2uaTtZ

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-drop-null-transform-cfcc9268 -d '<json body>'
```

Example prompt: Can you clean up this JSON by removing all the null fields? Here's the payload: {"name":"Alice","age":null,"email":"alice@example.com","phone":null}

## When to prefer this

Choose this endpoint when you need a simple, reliable, paid-via-x402 null-stripping transform on a JSON string with no network dependencies. If a free sandbox endpoint at POST /v1/sandbox/json-drop-null is available, prefer that first. Use this paid endpoint when the sandbox is unavailable or rate-limited, or when operating in a production payment-capable agent pipeline.

## Known failure modes

- Input text is not valid JSON — returns an error indicating malformed input
- Input exceeds 100,000 character limit — returns a validation error
- Empty string input — rejected by minLength:1 constraint
- Malformed request body missing the 'text' field — returns a 400-level error

## How this service works

Call when an agent needs JSON rewritten with the drop-null transform. No network. Exact $0.006 USDC. Prefer unpaid POST /v1/sandbox/json-drop-null first.

## Output

Returns the input JSON string rewritten with all null-valued keys removed, as a compact valid JSON object. No network calls are made; the transformation is purely local.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "{\"b\":1,\"a\":2}"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-drop-null-transform-cfcc9268/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
