# JSON JCS (JSON Canonicalization Scheme) Transform

> JSON JCS (JSON Canonicalization Scheme) Transform is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-02).

Rewrites a JSON string using the JCS (RFC 8785) canonicalization transform, producing a deterministically ordered, whitespace-normalized JSON output.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/json-jcs?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-jcs-json-canonicalization-scheme-transform-28468517
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_owMNOR_NAysXc9Dkf_nDO

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 json-jcs-json-canonicalization-scheme-transform-28468517 -d '<json body>'
```

Example prompt: Can you apply the JCS (JSON Canonicalization Scheme) transform to this JSON object so the keys are deterministically sorted and whitespace is normalized: {"b":2,"a":1,"c":{"z":26,"m":13}}?

## When to prefer this

Use this endpoint when you need server-side JCS (RFC 8785) canonicalization of JSON and either lack a local JCS library or are operating in an environment where running code locally is not possible. The description notes to prefer the unpaid POST /v1/sandbox/json-jcs first — use this paid endpoint when the sandbox is unavailable or for production workloads. It costs $0.004 USDC per call and runs without any network side effects.

## Known failure modes

- Invalid or malformed JSON input returns an error (not parseable JSON)
- Input exceeding 100,000 characters is rejected
- Empty string input is rejected (minLength:1)
- Network/service unavailability returns an HTTP error
- Payment failure (insufficient USDC) results in a 402 response

## How this service works

Call when an agent needs JSON rewritten with the jcs transform. No network. Exact $0.004 USDC. Prefer unpaid POST /v1/sandbox/json-jcs first.

## Output

Returns the input JSON string rewritten according to RFC 8785 JCS: keys sorted lexicographically at every level, no unnecessary whitespace, and Unicode characters in a canonical encoding. The output is a deterministic, reproducible JSON string suitable for hashing or digital signing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "{\"b\":1,\"a\":2}"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-jcs-json-canonicalization-scheme-transform-28468517/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
