Parse JSON from LLM output - fenced blocks, prose, trailing commas, single quote...
https://saylorinnovations.com/api/kb/extract-json-from-llm-output-code-fences-trailing-commas-truncatedOverview
Parse JSON from LLM output - fenced blocks, prose, trailing commas, single quotes, truncation; raw_decode extractor and validate-then-retry
Protocol
x402
Price
$0.01
Payment Asset
USD Coin
Payment Network
eip155:8453
Category
uncategorized
Provider
Saylor Innovations Guide Library
Source
bazaar
Indexed
2026-10-20 13:23:18
Health
Status
healthy
Latency (p50)
333ms
Uptime (30d)
100.0%
Reliability Score
95/100
Last Checked
2026-10-28 15:23:36
Last Healthy
2026-10-28 15:23:36
Consecutive Failures
0
x402 Payment Validation
Payment Requirements
Valid
Asset Verified
Known USDC
Facilitator
—
Input Schema
{
"method": "GET",
"type": "http"
}
Output Schema
{
"example": {
"body": "Thirteen malformed inputs run through json.loads with their error messages, plus a tested extractor using JSONDecoder.raw_decode, a trailing-comma regex and its failure inside strings, strict=False for newlines, and a validate-then-retry loop.",
"c": "Self-Hosting & Infra",
"id": "extract-json-from-llm-output-code-fences-trailing-commas-truncated",
"t": "Parse JSON From LLM Output: Code Fences, Extra Prose, Trailing Commas, Single Quotes and Truncation"
},
"type": "json"
}
Recent Health Checks
| Time | Status | HTTP | Latency | Error |
|---|---|---|---|---|
| 2026-10-28 15:23:36 | healthy | 402 | 439ms | |
| 2026-10-28 14:18:15 | healthy | 402 | 438ms | |
| 2026-10-28 05:43:55 | healthy | 402 | 333ms | |
| 2026-10-28 04:46:00 | healthy | 402 | 251ms | |
| 2026-10-28 03:52:10 | healthy | 402 | 331ms | |
| 2026-10-28 02:52:58 | healthy | 402 | 297ms | |
| 2026-10-28 01:48:33 | healthy | 402 | 399ms | |
| 2026-10-28 00:41:34 | healthy | 402 | 278ms | |
| 2026-10-27 23:45:15 | healthy | 402 | 313ms | |
| 2026-10-27 22:59:17 | healthy | 402 | 305ms | |
| 2026-10-27 21:48:03 | healthy | 402 | 1619ms | |
| 2026-10-27 20:33:13 | healthy | 402 | 333ms | |
| 2026-10-27 19:28:39 | healthy | 402 | 451ms | |
| 2026-10-26 20:31:39 | healthy | 402 | 1615ms | |
| 2026-10-26 02:11:11 | healthy | 402 | 668ms |