# Delx Commerce — JSON Boolean Coerce

> Delx Commerce — JSON Boolean Coerce 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).

Coerces an array of string values into JSON booleans, returning converted results and rejecting unparseable inputs.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-boolean-coerce?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-boolean-coerce-90910024
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vXXYU2dF2jZXvRnJasuWz

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-boolean-coerce-90910024 -d '<json body>'
```

Example prompt: Can you coerce these strings into proper JSON booleans for me: ['true', '1', 'false', 'yes', 'bad', '0']?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-use, verifiable boolean coercion utility with no signup overhead. Ideal for agents operating in automated pipelines that need to normalize string-encoded boolean flags from CSVs, configs, or user input before downstream processing. The verifiable evidence block (SHA-256 hash, no-retention guarantee, zero external calls) makes it suitable for compliance-sensitive workflows. Prefer it over building custom coercion logic when you want a standardized, auditable result.

## Known failure modes

- Input array exceeds 256 items — request rejected
- Individual string values exceeding 8192 characters — item rejected
- Malformed request body — 400-level error
- Payment not received or insufficient USDC — 402 Payment Required
- Strings with no valid boolean interpretation included in 'rejected' array

## 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 a 'values' array of coerced booleans corresponding to valid inputs, a 'rejected' array listing strings that could not be coerced, an 'operation' identifier, a 'schema' version string, a 'status' field, and an 'evidence' block containing a SHA-256 hash of the input, a 'retained: false' flag confirming no data is stored, and an 'external_calls: 0' count confirming purely in-memory processing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "values": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Values supplied to JSON Boolean Coerce; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "values": [
    true,
    false,
    true
   ],
   "rejected": [
    "bad"
   ]
  },
  "schema": "delx/util-json-boolean-coerce/v1",
  "status": "advisory",
  "evidence": {
   "retained": false,
   "input_sha256": "b0d8a970d8b95be459de90bd542fe2e952d9487c3b0d629f128cb547e47f6fa2",
   "external_calls": 0
  },
  "operation": "data_batch:json_boolean_coerce"
 }
}
```

## More

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