extract_json_from_text
ActiveTool of IA-QA — 130+ QA & Dev Tools for AI Agents
Extract the first valid JSON object or array embedded in chaotic LLM output (surrounded by markdown fences, prose, or explanatory text). Handles ```json blocks and inline JSON. Call this whenever an LLM returns structured data mixed with explanation text instead of raw JSON.
Parameters schema
{
"type": "object",
"required": [
"input"
],
"properties": {
"input": {
"type": "string",
"description": "Raw text (e.g., LLM output) that may contain a JSON object or array"
}
}
}No endpoints wrapped at confidence ≥ 0.70.
Parent server
IA-QA — 130+ QA & Dev Tools for AI Agents
https://github.com/jcjamet/ia-qa
1/7 registries