← Back to directory

API Acre — Deterministic JSON repair

https://apiacre.com/v1/data/json-repair

Overview

Repair caller-supplied malformed JSON by safely removing an outer Markdown fence, comments, single-quoted strings, unquoted identifier keys, Python literals, and trailing commas, with transformation hashes and strict rejection of duplicate keys or non-finite numbers.

Protocol x402 (POST)
Price $0.0050
Payment Asset USD Coin
Payment Network Base
Category data
Provider API Acre
Source self-registered
Indexed 2026-08-14 02:42:58

Health

Status healthy
Latency (p50) 307ms
Uptime (30d) 100.0%
Reliability Score 95/100
Last Checked 2026-12-05 11:37:14
Last Healthy 2026-12-05 11:37:14
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "body": { "content": "```json\n{\n // generated result\n status: 'ok',\n rows: [1, 2, 3,],\n active:...", "repairs": [ "markdown_fence", "comments", "single_quoted_strings", "unquoted_keys", "python_literals", "trailing_commas" ] }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "data": { "appliedRepairs": [ { "afterSha256": "e47f9ab1e0ee78db083237290fcdd35f83668f2b939c92e434b2103af7856f4f", "beforeSha256": "9dd0095fe6576143aa8e835ced506030e8065e2589c4478a4be1342dc1aaa2ed", "occurrences": 1, "strategy": "markdown_fence" } ], "attemptSha256": "4db25e6c34e4f507a7b3addba28d9c40bda76572ef52c9a7b49facdea7f19440", "content": "{\n \"active\": true,\n \"rows\": [\n 1,\n 2,\n 3\n ],\n \"status\": \"ok\"\n}", "error": null, "inputSha256": "9dd0095fe6576143aa8e835ced506030e8065e2589c4478a4be1342dc1aaa2ed", "outputSha256": "b1b2333ad8949036facfd8ce006b4da0e612468a0e8a9b016514208af13321d5", "repair": { "appliedStrategyCount": 6, "executionOrder": [ "markdown_fence", "comments", "single_quoted_strings", "unquoted_keys", "python_literals", "trailing_commas" ], "outputCanonicalization": "json-sort-keys-indent-2-utf8", "permitted": [ "markdown_fence", "comments", "single_quoted_strings", "unquoted_keys", "python_literals", "trailing_commas" ], "version": "apiacre-json-repair/1" }, "repaired": true, "valid": true, "validInput": false, "warnings": [] }, "meta": { "cached": false, "duration_ms": 42, "next_actions": [ { "method": "POST", "path": "/v1/data/schema", "reason": "Infer a reusable Draft 2020-12 contract from the successfully repaired JSON.", "service": "data.schema", "title": "JSON Schema generator" } ], "sources": [], "warnings": [] }, "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a", "service": "data.json-repair", "version": "1" }, "type": "json" }

Recent Health Checks

Time Status HTTP Latency Error
2026-12-05 11:37:14 healthy 402 83ms
2026-12-05 10:31:51 healthy 402 75ms
2026-12-05 09:30:30 healthy 402 71ms
2026-12-05 08:35:20 healthy 402 64ms
2026-12-05 07:31:46 healthy 402 82ms
2026-12-05 06:28:20 healthy 402 50ms
2026-12-05 05:29:28 healthy 402 1346ms
2026-12-05 03:41:32 healthy 402 67ms
2026-12-05 02:29:24 healthy 402 57ms
2026-12-05 01:28:55 healthy 402 73ms
2026-12-05 00:54:16 healthy 402 78ms
2026-12-04 23:33:56 healthy 402 678ms
2026-12-04 19:07:54 healthy 402 307ms
2026-12-04 17:42:29 healthy 402 341ms
2026-12-04 15:28:47 healthy 402 1255ms
2026-12-04 13:16:32 healthy 402 800ms
2026-12-04 09:54:34 healthy 402 1184ms
2026-12-04 06:02:49 healthy 402 3219ms
2026-12-04 04:06:31 healthy 402 2591ms
2026-12-04 01:42:51 healthy 402 1181ms