json-repair 0.15.1__py3-none-any.whl → 0.15.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_repair.py +2 -2
- {json_repair-0.15.1.dist-info → json_repair-0.15.3.dist-info}/METADATA +1 -1
- json_repair-0.15.3.dist-info/RECORD +7 -0
- json_repair-0.15.1.dist-info/RECORD +0 -7
- {json_repair-0.15.1.dist-info → json_repair-0.15.3.dist-info}/LICENSE +0 -0
- {json_repair-0.15.1.dist-info → json_repair-0.15.3.dist-info}/WHEEL +0 -0
- {json_repair-0.15.1.dist-info → json_repair-0.15.3.dist-info}/top_level.txt +0 -0
json_repair/json_repair.py
CHANGED
@@ -78,7 +78,7 @@ class JSONParser:
|
|
78
78
|
elif char == "“":
|
79
79
|
return self.parse_string(string_quotes=["“", "”"])
|
80
80
|
# <number> starts with [0-9] or minus
|
81
|
-
elif char.isdigit() or char == "-":
|
81
|
+
elif char.isdigit() or char == "-" or char == ".":
|
82
82
|
return self.parse_number()
|
83
83
|
# <boolean> could be (T)rue or (F)alse or (N)ull
|
84
84
|
elif char.lower() in ["t", "f", "n"]:
|
@@ -329,7 +329,7 @@ class JSONParser:
|
|
329
329
|
def parse_number(self) -> Union[float, int, str]:
|
330
330
|
# <number> is a valid real number expressed in one of a number of given formats
|
331
331
|
number_str = ""
|
332
|
-
number_chars = set("0123456789-.eE")
|
332
|
+
number_chars = set("0123456789-.eE/")
|
333
333
|
char = self.get_char_at()
|
334
334
|
while char and char in number_chars:
|
335
335
|
number_str += char
|
@@ -0,0 +1,7 @@
|
|
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,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
json_repair/__init__.py,sha256=AlNie5y6BZBioGi5fzTAUvum_y0U5aL5aNsuQ_68LQc,175
|
2
|
-
json_repair/json_repair.py,sha256=oGD3DDU_Gni7HA25Mlnx4b5_b7c8F_kRSNrxAR3f9sk,19297
|
3
|
-
json_repair-0.15.1.dist-info/LICENSE,sha256=wrjQo8MhNrNCicXtMe3MHmS-fx8AmQk1ue8AQwiiFV8,1076
|
4
|
-
json_repair-0.15.1.dist-info/METADATA,sha256=Kpv-aRkvY2N4YOLS9z61lKtD5IeoN0qg74Z0-y7mHtk,7355
|
5
|
-
json_repair-0.15.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
6
|
-
json_repair-0.15.1.dist-info/top_level.txt,sha256=7-VZwZN2CgB_n0NlSLk-rEUFh8ug21lESbsblOYuZqw,12
|
7
|
-
json_repair-0.15.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|