What it does
A sub-workflow for n8n that takes text containing JSON, such as output from an AI model or a scraped page, and parses it. It trims the text, removes Markdown code fences, fixes common syntax errors such as control characters, bad escapes and trailing commas, and extracts a JSON block from surrounding text. It returns the parsed fields, and the status details can be kept for debugging.
Use cases
- 01Parse JSON returned by an AI model
- 02Clean up scraped text that holds almost-valid JSON
- 03Reuse one parser across several workflows
Connects
Code