extract_json_from_text
Read-onlyIdempotent
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Raw text (e.g., LLM output) that may contain a JSON object or array |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | No | ||
| source | No |