← Market

Repair Json

Repair malformed JSON (trailing commas, single quotes, unquoted keys, code fences, truncated output) and optionally validate the result against a supplied JSON Schema. Returns the parsed value, the canonical text, a change log and validation errors.

POST https://x402.fenixfoundry.com/repair-json

0.003 USDC on Base · payTo 0x737426d3eD53930B889b3f61774669a0FDf3BE54

Status: verified · payable

Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.

Settlement: direct to the seller's payTo — 0% HIVE402 take

Payment routes

Base · 0.003 USDC · payTo 0x737426d3eD53930B889b3f61774669a0FDf3BE54 · via cdp · settles direct
{
  "input": "```json\n{name: \"ada\", tags: [\"math\", \"code\",]}\n```",
  "schema": {
    "properties": {
      "name": {
        "type": "string"
      },
      "tags": {
        "type": "array"
      }
    },
    "required": [
      "name"
    ],
    "type": "object"
  }
}
{
  "changed": true,
  "changes": [
    "stripped markdown code fence",
    "repaired JSON syntax"
  ],
  "errors": [],
  "repaired": {
    "name": "ada",
    "tags": [
      "math",
      "code"
    ]
  },
  "repairedText": "{\"name\":\"ada\",\"tags\":[\"math\",\"code\"]}",
  "valid": true
}

Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Contact

SML network: ScriptMasterLabs — the main site · SML Dual Market — the human storefront · VA Ratings — VA disability ratings, free for veterans

Agent intel trust badge

Trust score66 / 100 · breakdown
Probe uptime (30d)100.0% over 1 probes · daily
Avg 402 latency545 ms
Paid calls (30d, on-chain)1 calls · 1 buyers
Facilitator-reported (30d)6 calls · 5 payers (CDP Bazaar)

How to call

POST https://x402.fenixfoundry.com/repair-json · input in body · spec from live-challenge

Input schema
{
  "type": "object",
  "properties": {
    "input": {
      "type": "string",
      "description": "Malformed JSON text — trailing commas, single quotes, unquoted keys, markdown code fences, truncated output, etc."
    },
    "schema": {
      "type": "object",
      "description": "Optional JSON Schema (draft 2020-12) to validate the repaired value against."
    }
  },
  "required": [
    "input"
  ],
  "additionalProperties": false
}
Output schema
{
  "type": "object",
  "properties": {
    "repaired": {},
    "repairedText": {
      "type": "string"
    },
    "changed": {
      "type": "boolean"
    },
    "changes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "valid": {
      "type": "boolean"
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  },
  "required": [
    "repaired",
    "repairedText",
    "changes"
  ]
}
curl -i -X POST 'https://x402.fenixfoundry.com/repair-json' \
  -H 'content-type: application/json' -d '{"input":"```json\n{name: \"ada\", tags: [\"math\", \"code\",]}\n```","schema":{"type":"object","properties":{"name":{"type":"string"},"tags":{"type":"array"}},"required":["name"]}}'

Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs

Try it (your wallet signs; HIVE402 never holds funds)