Skip to main content
Glama

ScorpTech x402 API

Json Repair

json_repair
Read-onlyIdempotent

Repair broken or LLM-style JSON into valid JSON: strips markdown fences and surrounding prose, comments, trailing/missing commas, single or smart quotes, unquoted keys and values, Python/JS literals (True/None/undefined), NaN/Infinity, unescaped inner quotes and control characters, truncated output (closes open strings/arrays/objects) and mismatched brackets. Reports every fix applied, the original parse error, type and size stats, and optionally runs a JSONPath query ($.a.b[0], [*], .., slices, unions, filters) on the result. Offline; 200 KB. Price: $0.005 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/json-repair

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe broken JSON (aliases: json, input). Max 200 KB
queryNoOptional JSONPath to evaluate on the repaired value
prettyNoAlso return the repaired JSON pretty-printed (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources