json-repair 0.30.2__py3-none-any.whl → 0.30.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- json_repair/json_parser.py +7 -0
- {json_repair-0.30.2.dist-info → json_repair-0.30.3.dist-info}/METADATA +1 -1
- {json_repair-0.30.2.dist-info → json_repair-0.30.3.dist-info}/RECORD +7 -7
- {json_repair-0.30.2.dist-info → json_repair-0.30.3.dist-info}/WHEEL +1 -1
- {json_repair-0.30.2.dist-info → json_repair-0.30.3.dist-info}/LICENSE +0 -0
- {json_repair-0.30.2.dist-info → json_repair-0.30.3.dist-info}/entry_points.txt +0 -0
- {json_repair-0.30.2.dist-info → json_repair-0.30.3.dist-info}/top_level.txt +0 -0
json_repair/json_parser.py
CHANGED
@@ -362,6 +362,13 @@ class JSONParser:
|
|
362
362
|
"While parsing a string missing the left delimiter in object value context, we found a , or } and we couldn't determine that a right delimiter was present. Stopping here",
|
363
363
|
)
|
364
364
|
break
|
365
|
+
if char == "]" and ContextValues.ARRAY in self.context.context:
|
366
|
+
# We found the end of an array and we are in array context
|
367
|
+
# So let's check if we find a rstring_delimiter forward otherwise end early
|
368
|
+
i = self.skip_to_character(rstring_delimiter)
|
369
|
+
if not self.get_char_at(i):
|
370
|
+
# No delimiter found
|
371
|
+
break
|
365
372
|
string_acc += char
|
366
373
|
self.index += 1
|
367
374
|
char = self.get_char_at()
|
@@ -1,13 +1,13 @@
|
|
1
1
|
json_repair/__init__.py,sha256=c4L2kZrHvWEKfj_ODU2naliNuvU6FlFVxtF0hbLe6s8,178
|
2
2
|
json_repair/__main__.py,sha256=EsJb-y89uZEvGQQg1GdIDWzfDwfOMvVekKEtdguQXCM,67
|
3
3
|
json_repair/json_context.py,sha256=mm6dOyrPJ1sDskTORZSXCW7W9-5veMlUKqXQ3Hw3EG4,971
|
4
|
-
json_repair/json_parser.py,sha256=
|
4
|
+
json_repair/json_parser.py,sha256=Vdz3gUrweG4wh0Vh-xpv6HpFtoUH1Hc6Nu0b5smdcM0,29114
|
5
5
|
json_repair/json_repair.py,sha256=LINLSJBs3cJMfs1YRDaIpfWR5PJLs87Oe06G5yQjY18,9729
|
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.30.
|
9
|
-
json_repair-0.30.
|
10
|
-
json_repair-0.30.
|
11
|
-
json_repair-0.30.
|
12
|
-
json_repair-0.30.
|
13
|
-
json_repair-0.30.
|
8
|
+
json_repair-0.30.3.dist-info/LICENSE,sha256=wrjQo8MhNrNCicXtMe3MHmS-fx8AmQk1ue8AQwiiFV8,1076
|
9
|
+
json_repair-0.30.3.dist-info/METADATA,sha256=kUHN-HfYfhT0qCuh8KAKdhKI-vn4_tpSIsRTcN4xl8o,11794
|
10
|
+
json_repair-0.30.3.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
11
|
+
json_repair-0.30.3.dist-info/entry_points.txt,sha256=SNfge3zPSP-ASqriYU9r3NAPaXdseYr7ciPMKdV2uSw,57
|
12
|
+
json_repair-0.30.3.dist-info/top_level.txt,sha256=7-VZwZN2CgB_n0NlSLk-rEUFh8ug21lESbsblOYuZqw,12
|
13
|
+
json_repair-0.30.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|