pub fn extract_json(text: &str) -> Option<Value>
Extract a JSON value from model text: the whole text, a fenced ```json block, or the outermost {...} / [...] span.
{...}
[...]