json-repair 0.15.3__py3-none-any.whl → 0.15.5__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_repair.py +14 -4
- {json_repair-0.15.3.dist-info → json_repair-0.15.5.dist-info}/METADATA +1 -1
- json_repair-0.15.5.dist-info/RECORD +7 -0
- json_repair-0.15.3.dist-info/RECORD +0 -7
- {json_repair-0.15.3.dist-info → json_repair-0.15.5.dist-info}/LICENSE +0 -0
- {json_repair-0.15.3.dist-info → json_repair-0.15.5.dist-info}/WHEEL +0 -0
- {json_repair-0.15.3.dist-info → json_repair-0.15.5.dist-info}/top_level.txt +0 -0
json_repair/json_repair.py
CHANGED
@@ -226,10 +226,20 @@ class JSONParser:
|
|
226
226
|
lstring_delimiter = rstring_delimiter = string_quotes
|
227
227
|
# There is sometimes a weird case of doubled quotes, we manage this also later in the while loop
|
228
228
|
if self.get_char_at(1) == lstring_delimiter:
|
229
|
-
|
230
|
-
|
231
|
-
)
|
232
|
-
|
229
|
+
# This is a valid exception only if it's closed by a double delimiter again
|
230
|
+
i = 2
|
231
|
+
next_c = self.get_char_at(i)
|
232
|
+
while next_c and next_c != rstring_delimiter:
|
233
|
+
i += 1
|
234
|
+
next_c = self.get_char_at(i)
|
235
|
+
# Now check that the next character is also a delimiter to ensure that we have "".....""
|
236
|
+
# In that case we ignore this rstring delimiter
|
237
|
+
if next_c and (self.get_char_at(i + 1) or "") == rstring_delimiter:
|
238
|
+
self.log(
|
239
|
+
"While parsing a string, we found a valid starting doubled quote, ignoring it",
|
240
|
+
"info",
|
241
|
+
)
|
242
|
+
self.index += 1
|
233
243
|
char = self.get_char_at()
|
234
244
|
if char != lstring_delimiter:
|
235
245
|
self.log(
|
@@ -0,0 +1,7 @@
|
|
1
|
+
json_repair/__init__.py,sha256=AlNie5y6BZBioGi5fzTAUvum_y0U5aL5aNsuQ_68LQc,175
|
2
|
+
json_repair/json_repair.py,sha256=nt7wiolfT-b65nRqdHP6CHl0BXeGduBPUFrgN4xPyFU,19879
|
3
|
+
json_repair-0.15.5.dist-info/LICENSE,sha256=wrjQo8MhNrNCicXtMe3MHmS-fx8AmQk1ue8AQwiiFV8,1076
|
4
|
+
json_repair-0.15.5.dist-info/METADATA,sha256=8rWonhcvr29wSKLVwEbqBydSPQ6k7H9tN6illiA4gPI,7355
|
5
|
+
json_repair-0.15.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
6
|
+
json_repair-0.15.5.dist-info/top_level.txt,sha256=7-VZwZN2CgB_n0NlSLk-rEUFh8ug21lESbsblOYuZqw,12
|
7
|
+
json_repair-0.15.5.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
json_repair/__init__.py,sha256=AlNie5y6BZBioGi5fzTAUvum_y0U5aL5aNsuQ_68LQc,175
|
2
|
-
json_repair/json_repair.py,sha256=RfoQnUExKdYo10VA0pnqu7yu_iMhMlQaPiCfRz2N9NI,19313
|
3
|
-
json_repair-0.15.3.dist-info/LICENSE,sha256=wrjQo8MhNrNCicXtMe3MHmS-fx8AmQk1ue8AQwiiFV8,1076
|
4
|
-
json_repair-0.15.3.dist-info/METADATA,sha256=E1xyO7-FsmDYlpJVC4tjj5c71DAKTtAuXNb9CnyjzBI,7355
|
5
|
-
json_repair-0.15.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
6
|
-
json_repair-0.15.3.dist-info/top_level.txt,sha256=7-VZwZN2CgB_n0NlSLk-rEUFh8ug21lESbsblOYuZqw,12
|
7
|
-
json_repair-0.15.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|