# Delx Commerce — JSON Empty Prune

> Delx Commerce — JSON Empty Prune is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Removes keys with empty or null values from a JSON object and returns the pruned result with evidence of what was removed.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-empty-prune?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-json-empty-prune-de161d4b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RTDD0W1abWRdOLlS5HzE-

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 delx-commerce-json-empty-prune-de161d4b -d '<json body>'
```

Example prompt: Can you clean up this JSON object by removing all the empty and null keys from it? Here it is: {"name":"Alice","age":null,"email":"","city":"New York"}

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call, no-signup utility to strip empty and null values from a JSON object in a verifiable, auditable way. It is ideal for agents that need to clean up LLM outputs, API responses, or scraped data on the fly without maintaining infrastructure. The built-in SHA-256 evidence and no-retention guarantee make it suitable for privacy-conscious pipelines. Prefer this over custom preprocessing code when you want deterministic, verifiable pruning with cryptographic proof of what was processed.

## Known failure modes

- Input object exceeds 128 properties — rejected with a schema validation error
- Malformed JSON body — returns a parse error
- Network or payment processing failure — returns a 402 or 5xx error
- Object has no empty keys — returns the original object unchanged with an empty removed_keys list

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with the pruned result (object with empty/null keys removed), a list of the removed key names, a status of 'pass', and an evidence block containing whether the input was retained, the SHA-256 hash of the input, and the number of external calls made (always 0).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "object": {
   "type": "object",
   "description": "Object supplied to JSON Empty Prune; used only for this bounded calculation and processed in memory without retention.",
   "maxProperties": 128,
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "object": {
    "d": 1
   },
   "removed_keys": [
    "a",
    "b",
    "c"
   ]
  },
  "schema": "delx/util-json-empty-prune/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "f9cf0bb18905a0dc7f01e28106ee0e0ef53cb457dc27e0691f35144835ca7c57",
   "external_calls": 0
  },
  "operation": "data_batch:json_empty_prune"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-json-empty-prune-de161d4b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
