Skip to main content

attempt_json_repair

Function attempt_json_repair 

Source
pub fn attempt_json_repair(raw: &str) -> Option<String>
Expand description

Attempt to repair common JSON errors induced by agents. Returns Some(repaired_json) if repairs were made, None if no repairs possible.