Skip to content

Commit

Permalink
fix #57 by set auto-repair = True by default (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemia authored Jan 29, 2024
1 parent 07c9157 commit c281966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fuzzy_json/decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def repair_json(json_str: str) -> str:
return state_start(json_str)


def loads(json_str: str, auto_repair: bool = False) -> dict[str, Any]:
def loads(json_str: str, auto_repair: bool = True) -> dict[str, Any]:
try:
return json.loads(json_str, strict=False)
except json.decoder.JSONDecodeError:
Expand Down

0 comments on commit c281966

Please sign in to comment.