# WritersLogic JSON Duplicate Key Auditor

> WritersLogic JSON Duplicate Key Auditor is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Scans raw JSON text for duplicate and Unicode-equivalent object member names at any nesting depth, reporting each with its JSON pointer, byte offset, line, column, values, and conflict status.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/duplicate-key-audit?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-json-duplicate-key-auditor-2f24736d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tkELXrwpdKnk9Db374E8g

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 writerslogic-json-duplicate-key-auditor-2f24736d -d '<json body>'
```

Example prompt: Can you scan this JSON text for duplicate keys — including ones that look different but resolve to the same name after Unicode unescaping — and tell me exactly where each occurs and whether their values conflict?

## When to prefer this

Use this endpoint when an agent needs to inspect raw JSON text before it is parsed by json.loads, JSON.parse, or passed through a gateway that silently discards all but the last duplicate key — particularly when security, data integrity, or RFC 8259 strict compliance matters. Prefer this over manual parsing when you need exact byte offsets, line/column positions, Unicode-equivalent key detection, and __proto__ or surrogate reporting in a single call. Not a schema validator or JSON repairer.

## Known failure modes

- Input exceeds 200,000 character limit — request rejected
- Input exceeds 64 nesting levels — may not fully analyze deeply nested structures
- Malformed or missing 'text' field in request body returns an error
- Non-JSON input (e.g. XML or plain text) will be reported as a syntax error at offset 0
- Network timeout on very large but valid payloads near the character limit

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

Returns a structured report listing every duplicate key occurrence with its JSON pointer, UTF-8 byte offset, line number, column number, all values carried by each occurrence, and a flag indicating whether those values conflict. Also reports: presence of a leading BOM, any unpaired surrogates, any __proto__ keys found, and the exact byte offset of any syntax error. Does not modify or repair the input JSON.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 200000,
   "description": "Raw JSON text, up to 200000 characters and 64 levels of nesting."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-json-duplicate-key-auditor-2f24736d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
