Skip to main content

repair_json

Function repair_json 

Source
pub fn repair_json(json_str: &str, options: JsonRepairOptions) -> Result<String>
Expand description

Repairs a JSON string and returns the repaired JSON as a string.

§Arguments

  • json_str - The JSON string to repair
  • options - Configuration options for the repair process

§Returns

A Result containing the repaired JSON string or an error