Expected behavior
Should convert string ' - { "test_key": ["test_value", "test_value2"] }' into '{ "test_key": ["test_value", "test_value2"] }'
Exception
File "...\venv\Lib\site-packages\json_repair\json_repair.py", line 251, in parse_number
return int(number_str)
^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '-'
Exception is thrown after input of specific string
To reproduce:
good_json = repair_json(' - { "test_key": ["test_value", "test_value2"] }')
Expected behavior Should convert string ' - { "test_key": ["test_value", "test_value2"] }' into '{ "test_key": ["test_value", "test_value2"] }'
Exception File "...\venv\Lib\site-packages\json_repair\json_repair.py", line 251, in parse_number return int(number_str) ^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: '-'