{"uid":"cap_TZn-hr3LOxa1L-1a-W4vQ","slug":"json-pointer-escape-f1cd79d1","name":"JSON Pointer Escape","description":"JSON Pointer Escape: JSON Pointer Escape escapes one JSON Pointer reference token from bounded caller-supplied values without an external provider. Call JSON Pointer Escape before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for JSON Pointer Escape as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-part…","url":"https://api.delx.ai/api/v1/x402/json-pointer-escape","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"token":{"type":"string","maxLength":8192,"description":"Token supplied to JSON Pointer Escape; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"token":"a~1b~0c"},"schema":"delx/util-json-pointer-escape/v1","status":"pass","evidence":{"retained":false,"input_sha256":"3927fe1bae99d89a23fe6e2ad6ea1b89041d27d864253356169270df01635a75","external_calls":0},"operation":"data_batch:json_pointer_escape"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mhTpVTJL3fB0dnvk1t9z5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Escapes a single JSON Pointer reference token by applying RFC 6901 escaping rules (~0 and ~1 substitutions) to a caller-supplied string.","exampleAgentPrompt":"Escape the JSON Pointer reference token 'store/item~name' so I can safely embed it in a JSON Pointer path — apply RFC 6901 rules for tildes and slashes.","exampleUseCases":[{"title":"Escaping slashes in field names","prompt":"I have a JSON field name called 'a/b/c' that I need to use inside a JSON Pointer path — can you escape it so the slashes become valid reference token characters?"},{"title":"Sanitizing tilde characters before pointer construction","prompt":"Before I pass this field name 'price~discount' to the downstream tool as part of a JSON Pointer, can you escape it so the tilde is properly encoded as ~0?"},{"title":"Normalizing user-supplied key for JSON Pointer use","prompt":"A user submitted the key 'product~1/variant' and I need to embed it in a JSON Pointer reference path — please escape it according to RFC 6901 so tildes become ~0 and slashes become ~1."}],"resultDescription":"Returns a versioned deterministic JSON object containing the escaped token string, normalized values, transformation counts indicating how many substitutions were made, and a versioned result contract — all processed in memory without data retention.","failureModes":["Token exceeds 8192 character limit — request rejected","Malformed request body — missing or invalid token field","Payment failure via x402 — call not executed","Upstream timeout or service unavailability — 5xx error returned"],"whenToPreferThis":"Use this endpoint when an AI agent needs to safely encode a single string as a JSON Pointer reference token (per RFC 6901) before constructing or passing a JSON Pointer path to a downstream tool. Prefer it over ad-hoc string replacement when you need a versioned, deterministic result contract with transformation counts for auditing or debugging. Ideal as a pre-processing step in agentic pipelines that assemble JSON Pointer expressions from user-supplied or dynamic field names.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:05:30.850Z","isFirstParty":false}