{"uid":"cap_odntCZhgHX5l3MnxHsAU3","slug":"delx-commerce-json-pointer-escape-7a9f5cc5","name":"Delx Commerce — JSON Pointer Escape","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/json-pointer-escape?utm_source=zero.xyz","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_iSg7IGOEFF4ULWQ2aGM3c","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 string token for safe use as a JSON Pointer segment by replacing '~' with '~0' and '/' with '~1'","exampleAgentPrompt":"Escape the string 'a/b~c' so it can be safely used as a JSON Pointer segment — I need the RFC 6901 encoded version where slashes become ~1 and tildes become ~0.","exampleUseCases":[{"title":"Safe JSON Pointer for nested key","prompt":"I have a JSON object with a key called 'user/profile' and I need to reference it using a JSON Pointer — can you escape that key so slashes and tildes are properly encoded for RFC 6901?"},{"title":"Dynamic path segment encoding","prompt":"My agent is building a JSON Pointer path at runtime and one of the segments is '~config/base' — escape that token so it won't break the pointer syntax."},{"title":"Encoding API response field names","prompt":"I'm navigating a JSON document where a field is named 'a~1b/c' and I need to turn that into a valid JSON Pointer segment — can you apply the correct RFC 6901 escaping?"}],"resultDescription":"Returns the escaped string (e.g. 'a~1b~0c' for input 'a/b~c'), along with processing metadata including a SHA-256 hash of the input, confirmation that no data was retained, and the count of external calls made (always 0). The response schema is 'delx/util-json-pointer-escape/v1' with a 'pass' status.","failureModes":["Input token exceeds 8192 character limit — rejected with a validation error","Malformed JSON body — returns a 400-level error","Payment not included or invalid x402 payment header — returns HTTP 402 Payment Required","Network timeout if the service is temporarily unavailable"],"whenToPreferThis":"Choose this endpoint when you need a verifiable, pay-per-use, no-signup utility for RFC 6901 JSON Pointer escaping — especially in agent workflows where auditability (SHA-256 input hash, no-retention evidence) matters. Prefer it over implementing the escaping inline when you need a tamper-evident proof of the transformation or when operating in a trust-minimized environment using USDC micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:08.721Z","isFirstParty":false,"canonicalSlug":"delx-commerce-json-pointer-escape-7a9f5cc5"}