Skip to main content

extract_json

Function extract_json 

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

Extract a JSON value from model text: the whole text, a fenced ```json block, or the outermost {...} / [...] span.