Crate json_repair

Source

Enums§

JsonParsingStrategy
Enum to specify parsing strategy.
JsonRepairError
Token

Functions§

assert_expected_matches_output_result
assert_expected_value_matches_output_result
attempt_repair_json_string
is_valid_json_value_start
parse_array
parse_object
parse_value
remove_control_characters_in_value
repair_json_accidental_single_quote_instead_of_double_quote
repair_json_add_missing_quotes
repair_json_close_unexpected_eof
repair_json_close_unexpected_eof_in_array_item
repair_json_close_unexpected_eof_in_array_tag
repair_json_comma_behavior
repair_json_control_characters
repair_json_fix_mismatched_quotes
repair_json_handle_eof_between_lists
repair_json_mismatched_brackets
Repairs mismatched or unbalanced brackets and braces in a JSON-like input.
repair_json_missing_closing_quotes
repair_json_missing_commas_in_list
repair_json_remove_duplicate_quotes
repair_json_string
applies all known fixes in order until one proves to work
repair_json_string_heavy
this one will try all of the fixes in parallel first before falling back to serial application.
repair_json_string_parallel
repair_json_string_series
repair_json_truncated_boolean_behavior
repair_json_with_known_capitalized_sentence_fragment_list_items
this one we use for certain cases where the JSON is known to have list items which are all Sentence fragments of this format
repair_standard_list_items_with_possible_splits
Repairs arrays of strings in a JSON value by merging items split across multiple lines. A new item starts with an uppercase first character. Subsequent lines that start lowercase are appended to the current item until another uppercase line is found.
sanitize_json_str
skip_whitespace
tokenize
unescape_string