Smart JSON Parser

Parses JSON from LLM outputs, stripping Markdown code fences if present.

Smart JSON Parser

AI-generated

Summary

Parse a JSON string input, typically from an LLM output, extracting JSON content by stripping Markdown code fences if present and returning the parsed JSON object.

Inputs

  • JSON String (required) — The JSON string to parse, usually from an LLM output. May include Markdown code fences (json ... ), which the operation will remove before parsing.

Output shape

A list of parsed JSON objects, one per input item.

If the JSON string contains Markdown code fences, they are removed before parsing. On parse failure, the node either throws an error or, if 'Continue On Fail' is enabled, returns an error message object for that item without stopping execution.

Links

Discussion