json-repair 0.29.8__py3-none-any.whl → 0.29.9__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- json_repair/json_parser.py +4 -2
- {json_repair-0.29.8.dist-info → json_repair-0.29.9.dist-info}/METADATA +1 -1
- {json_repair-0.29.8.dist-info → json_repair-0.29.9.dist-info}/RECORD +7 -7
- {json_repair-0.29.8.dist-info → json_repair-0.29.9.dist-info}/LICENSE +0 -0
- {json_repair-0.29.8.dist-info → json_repair-0.29.9.dist-info}/WHEEL +0 -0
- {json_repair-0.29.8.dist-info → json_repair-0.29.9.dist-info}/entry_points.txt +0 -0
- {json_repair-0.29.8.dist-info → json_repair-0.29.9.dist-info}/top_level.txt +0 -0
json_repair/json_parser.py
CHANGED
@@ -318,11 +318,13 @@ class JSONParser:
|
|
318
318
|
if next_c and next_c in [",", "}"]:
|
319
319
|
rstring_delimiter_missing = False
|
320
320
|
elif char == ",":
|
321
|
+
# skip any whitespace first
|
322
|
+
i = self.skip_whitespaces_at(idx=1, move_main_index=False)
|
321
323
|
# We couldn't find any rstring_delimeter before the end of the string
|
322
324
|
# check if this is the last string of an object and therefore we can keep going
|
323
325
|
# make an exception if this is the last char before the closing brace
|
324
|
-
|
325
|
-
if i > 1:
|
326
|
+
j = self.skip_to_character(character="}", idx=i)
|
327
|
+
if j - i > 1:
|
326
328
|
# Ok it's not right after the comma
|
327
329
|
# Let's ignore
|
328
330
|
rstring_delimiter_missing = False
|
@@ -1,13 +1,13 @@
|
|
1
1
|
json_repair/__init__.py,sha256=IIzSm1DsCRrr8seF3UeMZXwxcq-tE3j-8d1WBxvEJvE,178
|
2
2
|
json_repair/__main__.py,sha256=EsJb-y89uZEvGQQg1GdIDWzfDwfOMvVekKEtdguQXCM,67
|
3
3
|
json_repair/json_context.py,sha256=DdJu3DJR-ANvr8KrWfJqdtOE3uI6_B0VQidKvE3PjJA,1080
|
4
|
-
json_repair/json_parser.py,sha256=
|
4
|
+
json_repair/json_parser.py,sha256=ceswtnAAIeVxZDioXQbgPzcJnNdQu678Nuc1phgceDA,26924
|
5
5
|
json_repair/json_repair.py,sha256=GTg3OAXRbAJAHWs8oiQDqUHh4h6qKDVvWPXcrqafzLY,6100
|
6
6
|
json_repair/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
json_repair/string_file_wrapper.py,sha256=EHLhNBWoyUitzT08thytYJiNZh_klEFwfT8zutPSdb4,3905
|
8
|
-
json_repair-0.29.
|
9
|
-
json_repair-0.29.
|
10
|
-
json_repair-0.29.
|
11
|
-
json_repair-0.29.
|
12
|
-
json_repair-0.29.
|
13
|
-
json_repair-0.29.
|
8
|
+
json_repair-0.29.9.dist-info/LICENSE,sha256=wrjQo8MhNrNCicXtMe3MHmS-fx8AmQk1ue8AQwiiFV8,1076
|
9
|
+
json_repair-0.29.9.dist-info/METADATA,sha256=yws9nFwv5IGXUxlB-pAE540rQwRTXi_co3nbg47uXb0,10686
|
10
|
+
json_repair-0.29.9.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
11
|
+
json_repair-0.29.9.dist-info/entry_points.txt,sha256=SNfge3zPSP-ASqriYU9r3NAPaXdseYr7ciPMKdV2uSw,57
|
12
|
+
json_repair-0.29.9.dist-info/top_level.txt,sha256=7-VZwZN2CgB_n0NlSLk-rEUFh8ug21lESbsblOYuZqw,12
|
13
|
+
json_repair-0.29.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|