{"slug":"agent-data-fixer-production-up-railway-app-json-repair-fa1c0f","title":"Repair malformed JSON from model or tool output using deterministic CPU rules","host":"agent-data-fixer-production.up.railway.app","method":"POST","resource":"https://agent-data-fixer-production.up.railway.app/json-repair","category":"other","description":"Repair malformed JSON from model or tool output using deterministic CPU rules. Returns parsed value, repaired JSON text and a changed flag. Send JSON {text:string}. Paid calls require a fresh secret random 32-byte base64url Idempotency-Key; reuse it only for retries of the same input. Maximum reques","price_listed":0.003,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":4,"reported_payers_30d":1,"networks":["eip155:84532"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"text":"{hello: 'machine',}"},"bodyType":"json","headers":{"Content-Type":"application/json","Idempotency-Key":"GENERATE_YOUR_OWN_RANDOM_KEY_DO_NOT_REUSE_THIS"},"method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"text":{"description":"Malformed JSON to repair. Total encoded request body must fit 128 KiB.","type":"string"}},"required":["text"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"headers":{"properties":{"Content-Type":{"const":"application/json"},"Idempotency-Key":{"description":"REQUIRED for paid calls: generate 32 cryptographically random bytes as base64url (43 characters). Never reuse the public example. Keep secret. Reuse only for an identical request retry.","pattern":"^[a-zA-Z0-9_-]{43,128}$","type":"string"}},"required":["Content-Type","Idempotency-Key"],"type":"object"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body","headers"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":false,"properties":{"operation":{"const":"json-repair"},"requestId":{"pattern":"^[a-f0-9]{64}$","type":"string"},"result":{"additionalProperties":false,"properties":{"changed":{"type":"boolean"},"text":{"type":"string"},"value":{}},"required":["value","text","changed"],"type":"object"}},"required":["requestId","operation","result"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Repair malformed JSON from model or tool output using deterministic CPU rules. Returns parsed value, repaired JSON text and a changed flag. Send JSON {text:string}. Paid calls require a fresh secret random 32-byte base64url Idempotency-Key; reuse it only for retries of the same input. Maximum request body: 128 KiB. Repair may change meaning; validate the result.","last_updated":"2026-09-09T20:33:26.418Z","schemes":["exact"]}