# ONE Engine Sorted-First JSON Object Processing (p2/t7)

> ONE Engine Sorted-First JSON Object Processing (p2/t7) is a paid API for AI agents from one-search.one-engine.workers.dev, paid per call via x402, $0.0043/call, status unknown (last checked 2026-10-20).

Accepts a JSON object and returns the first 2 entries when sorted alphabetically by key, with Tier 7 diagnostic enrichment.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v10/record-process/sorted-first/p2/t7?utm_source=zero.xyz
- Price: $0.0043/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/one-engine-sorted-first-json-object-processing-p2-t7-fbd65a84
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Fh9h4gDsT0STv7Gr8zYeR

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 one-engine-sorted-first-json-object-processing-p2-t7-fbd65a84 -d '<json body>'
```

Example prompt: Sort this JSON object alphabetically by key and give me just the first 2 entries, with the full tier-7 diagnostics: {"zebra": 1, "apple": 2, "mango": 3, "banana": 4}.

## When to prefer this

Use this endpoint when you need a deterministic, reproducible extraction of the first 2 alphabetically sorted keys from a JSON object and want richer diagnostic context (Tier 7). Prefer it over manual sorting in agent code when you want a stable, pay-per-call microservice with audit-friendly diagnostics. Not suitable if you need more than 2 entries, a different sort order, or arbitrary slice sizes.

## Known failure modes

- Invalid or malformed JSON body returns a parse error
- Empty JSON object may return zero or fewer than 2 entries
- Payment not included or insufficient triggers HTTP 402 response
- Network timeout on the Workers.dev edge runtime

## How this service works

Deterministic JSON object processing utility: Return first alphabetically sorted entries; parameter=2. Tier 7/10 provides progressively richer diagnostics.

## Output

Returns the first 2 key-value entries from the input JSON object after sorting all keys alphabetically, accompanied by Tier 7 progressive diagnostic metadata (richer diagnostic payload than lower tiers, useful for debugging and validation).

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-sorted-first-json-object-processing-p2-t7-fbd65a84/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from one-search.one-engine.workers.dev](https://www.zero.xyz/host/one-search.one-engine.workers.dev/llms.txt)
