Skip to main content

extract_json_object

Function extract_json_object 

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

Extract the first balanced JSON object from a string.

Finds the first { and returns the substring up to the matching }.