{"uid":"cap_kMalDkPsnnqgSr0N1dN8B","slug":"delx-json-escape-8aba7d9d","name":"Delx JSON Escape","description":"JSON-escape a string (without surrounding quotes). Call when you embed text into a larger JSON template safely. Returns escaped string body for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/json-escape","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Input field: text."}}},"responseSchema":{"type":"json","example":{"text":"say \\\"hello\\\"\\nline2","schema":"delx/util-json-escape/v1"}},"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_FWF7PLR5KNx2nMEei5feD","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":"JSON-escapes a string so it can be safely embedded in a JSON template without surrounding quotes","exampleAgentPrompt":"JSON-escape this string so I can safely drop it into a JSON template: 'He said \"hello\\nworld\" and it broke everything.'","exampleUseCases":[{"title":"Safe user input in JSON payload","prompt":"I need to embed this user-submitted comment into a JSON body I'm building: 'She said: \"It\\'s great!\" \\n Really loved it.' Can you JSON-escape it so it won't break the template?"},{"title":"Escaping log messages for JSON transport","prompt":"I have a log line that contains backslashes and newlines: 'ERROR: file not found at C:\\Users\\foo\\log.txt\\nRetrying...' — escape it so I can safely put it inside a JSON string field."},{"title":"Preparing dynamic text for a JSON API call","prompt":"I'm building a JSON request body and I need to inject this dynamic description field safely: 'Product: "}],"resultDescription":"A JSON-escaped version of the input string — with special characters such as double quotes, backslashes, newlines, tabs, and control characters properly escaped — ready to be inserted directly as a value inside a JSON document without surrounding quotes added.","failureModes":["Missing or empty 'text' field returns an error","Input that is too large may be rejected","x402 payment failure if USDC funds are insufficient or wallet not configured","Network timeout or 5xx if the service is temporarily unavailable"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, stateless, no-dependency JSON string escape operation inside an agent pipeline — especially when building JSON templates dynamically from user input or external data that may contain quotes, backslashes, or control characters. Ideal when you don't want to ship or invoke a local JSON library, or when running in a constrained environment where local code execution is unavailable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:56:22.601Z","isFirstParty":false}