Skip to main content

extract_json

Function extract_json 

Source
pub fn extract_json(text: &str) -> Option<String>
Expand description

Extract the first JSON object or array from raw LLM text.

Handles json fences, fences, and raw JSON.