{"uid":"cap__5GCWB-ZOXhsfUicb0CuU","slug":"signalharness-json-repair-normalize-f3cac8f0","name":"SignalHarness JSON Repair & Normalize","description":"Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.","url":"https://signalharness.ai/api/agent/services/json_repair_normalize/invoke","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":65536,"minLength":1}}},"responseSchema":{"type":"json","example":{"replay":false,"result":{"value":{},"repairs":["example"],"normalized":"example","duplicateKeys":["example"]},"status":"succeeded","receipt":{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","usage":[],"status":"succeeded","network":"eip155:8453","artifacts":[],"endedAtMs":0,"latencyMs":0,"paymentId":"example-payment","receiptId":"example-receipt","requestId":"example-request","serviceId":"json_repair_normalize","executionId":"example-execution","startedAtMs":0,"amountAtomic":"5000","resultSha256":"e48ba9ab26657e6400a15821bea7d81c48a83c84ad80cca5b9efd7ff621753e0","serviceVersion":"1.0.0","settlementReference":"0x0000000000000000000000000000000000000000000000000000000000000000"},"artifacts":[],"requestId":"example-request","executionId":"example-execution"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ppo0vYc-AH8UzDYfR5PWr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs malformed JSON text, normalizes its structure, and reports duplicate keys and applied fixes","exampleAgentPrompt":"This JSON string from the API response is broken and won't parse — can you repair it and normalize the structure, and let me know if there are any duplicate keys? Here it is: {\"name\": \"Alice\", \"age\": 30, \"name\": \"Bob\", \"tags\": [\"a\", \"b\",,]}","exampleUseCases":[{"title":"Fix LLM-generated malformed JSON","prompt":"The model returned this JSON but it has syntax errors and won't parse — can you repair it and give me back a clean, valid object? Here's the broken output: {\"status\": \"ok\", \"items\": [1, 2, 3,], \"meta\": {\"count\": 3}"},{"title":"Detect duplicate keys in API response","prompt":"I got this JSON back from a third-party API and I suspect it has duplicate keys that are causing issues downstream — can you normalize it and tell me exactly which keys are duplicated? Here's the payload: {\"id\": 42, \"id\": 99, \"value\": \"test\"}"},{"title":"Clean up user-submitted JSON config","prompt":"A user pasted this config JSON into our form but it's malformed — missing some closing brackets and has trailing commas. Can you repair and normalize it so I can safely store it? Here's what they submitted: {\"timeout\": 30, \"retries\": 3, \"host\": \"localhost\",}"}],"resultDescription":"Returns a JSON object containing: the repaired and normalized JSON value, a list of repairs applied, the normalized JSON as a string, and any duplicate keys detected. Also includes a receipt with payment confirmation, latency, and execution metadata.","failureModes":["Input text is empty or exceeds 65536 characters — validation error","Input is so severely malformed that no valid JSON can be recovered — result may be empty or partial","Payment not received or insufficient USDC balance — 402 response before execution","Network or service timeout — no result returned","Text is valid JSON already — repairs list will be empty but result is still returned normally"],"whenToPreferThis":"Choose this endpoint when you have a JSON string that fails to parse and you need it repaired automatically without writing custom fix logic. It is especially useful for cleaning up LLM-generated JSON, recovering data from corrupted API responses, or normalizing inconsistently formatted JSON before storage or further processing. Prefer it over a generic JSON validator when you need actual repair and normalization, not just error detection.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:58:02.832Z","isFirstParty":false}