json-repair 0.12.1__py3-none-any.whl → 0.12.2__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 +4 -4
- {json_repair-0.12.1.dist-info → json_repair-0.12.2.dist-info}/METADATA +1 -1
- json_repair-0.12.2.dist-info/RECORD +7 -0
- json_repair-0.12.1.dist-info/RECORD +0 -7
- {json_repair-0.12.1.dist-info → json_repair-0.12.2.dist-info}/LICENSE +0 -0
- {json_repair-0.12.1.dist-info → json_repair-0.12.2.dist-info}/WHEEL +0 -0
- {json_repair-0.12.1.dist-info → json_repair-0.12.2.dist-info}/top_level.txt +0 -0
json_repair/json_repair.py
CHANGED
@@ -177,15 +177,15 @@ class JSONParser:
|
|
177
177
|
|
178
178
|
# Flag to manage corner cases related to missing starting quote
|
179
179
|
fixed_quotes = False
|
180
|
-
|
180
|
+
double_delimiter = False
|
181
181
|
lstring_delimiter = rstring_delimiter = '"'
|
182
182
|
if isinstance(string_quotes, list):
|
183
183
|
lstring_delimiter = string_quotes[0]
|
184
184
|
rstring_delimiter = string_quotes[1]
|
185
185
|
elif isinstance(string_quotes, str):
|
186
186
|
lstring_delimiter = rstring_delimiter = string_quotes
|
187
|
-
if
|
188
|
-
|
187
|
+
if self.get_char_at(1) == lstring_delimiter:
|
188
|
+
double_delimiter = True
|
189
189
|
self.index += 1
|
190
190
|
char = self.get_char_at()
|
191
191
|
if char != lstring_delimiter:
|
@@ -247,7 +247,7 @@ class JSONParser:
|
|
247
247
|
self.insert_char_at(rstring_delimiter)
|
248
248
|
else:
|
249
249
|
self.index += 1
|
250
|
-
if
|
250
|
+
if double_delimiter and self.get_char_at() == rstring_delimiter:
|
251
251
|
self.index += 1
|
252
252
|
|
253
253
|
return self.json_str[start:end]
|
@@ -0,0 +1,7 @@
|
|
1
|
+
json_repair/__init__.py,sha256=p9mZnte8Bg18NcxqgJ7vopH2gQv_XbZ0dRnk686QuRE,92
|
2
|
+
json_repair/json_repair.py,sha256=uI7LuqaKxawJ_6jPXPnvF9XpMMRcx9XOs-Ry0RnM9M0,14330
|
3
|
+
json_repair-0.12.2.dist-info/LICENSE,sha256=wrjQo8MhNrNCicXtMe3MHmS-fx8AmQk1ue8AQwiiFV8,1076
|
4
|
+
json_repair-0.12.2.dist-info/METADATA,sha256=_erpMlwCRwAemvIsRnyjysL2yU4xBq5p--CErPrD-gc,6581
|
5
|
+
json_repair-0.12.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
6
|
+
json_repair-0.12.2.dist-info/top_level.txt,sha256=7-VZwZN2CgB_n0NlSLk-rEUFh8ug21lESbsblOYuZqw,12
|
7
|
+
json_repair-0.12.2.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
json_repair/__init__.py,sha256=p9mZnte8Bg18NcxqgJ7vopH2gQv_XbZ0dRnk686QuRE,92
|
2
|
-
json_repair/json_repair.py,sha256=AHQhuR_pgK5WOeBOTxxV1GFF2NCJ9BR3eQyrbw5QG-0,14343
|
3
|
-
json_repair-0.12.1.dist-info/LICENSE,sha256=wrjQo8MhNrNCicXtMe3MHmS-fx8AmQk1ue8AQwiiFV8,1076
|
4
|
-
json_repair-0.12.1.dist-info/METADATA,sha256=V3VnWno65fWYped09KMIHrOM0XgOrWTZm3tzO9f347w,6581
|
5
|
-
json_repair-0.12.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
6
|
-
json_repair-0.12.1.dist-info/top_level.txt,sha256=7-VZwZN2CgB_n0NlSLk-rEUFh8ug21lESbsblOYuZqw,12
|
7
|
-
json_repair-0.12.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|