# Delx Commerce — JSON Null Prune

> Delx Commerce — JSON Null 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 null-valued keys from a JSON object and returns the pruned object along with the list of removed keys

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-null-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-null-prune-4904fec8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_McVvzAjepU_49tBlMuvuv

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-null-prune-4904fec8 -d '<json body>'
```

Example prompt: Can you clean up this JSON object by removing all the null-valued keys: {"a": 1, "b": null, "c": 0, "d": null}? I just need the pruned object and a list of what was removed.

## When to prefer this

Choose this endpoint when you need a lightweight, verifiable, pay-per-call utility to strip null fields from a JSON object without managing infrastructure or signing up for a service. Ideal for AI agents that need trustless, auditable data cleaning with cryptographic evidence of processing. Prefer this over custom code when you need a consistent, versioned operation schema with no data retention guarantees baked into the response.

## Known failure modes

- Object exceeds 128 properties — request rejected
- Malformed or non-object input — schema validation error
- Network or payment failure via x402 protocol — no result returned
- Empty object input — returns unchanged empty object with no removed keys

## 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 containing the pruned input object (with null-valued keys removed), the list of removed key names, the operation schema identifier, a status of 'pass', and verifiable evidence including a SHA-256 hash of the input and confirmation that no external calls were made and data was not retained.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "object": {
   "type": "object",
   "description": "Object supplied to JSON Null 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": {
    "a": 1,
    "c": 0
   },
   "removed_keys": [
    "b"
   ]
  },
  "schema": "delx/util-json-null-prune/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "87c8df8571467e64e55b273ef3bf9c2fffef2d81ad0cab8581f5a7d7a6236c39",
   "external_calls": 0
  },
  "operation": "data_batch:json_null_prune"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-json-null-prune-4904fec8/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)
