Skip to main content

parse_json_with_repair

Function parse_json_with_repair 

Source
pub fn parse_json_with_repair<T: DeserializeOwned>(
    json: &str,
) -> Result<T, Error>
Expand description

Parse JSON with automatic repair of common malformations.

First tries standard parsing. If that fails, repairs the JSON and retries.