json-repair 0.20.0__py3-none-any.whl → 0.20.1__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.
@@ -131,10 +131,14 @@ class JSONParser:
131
131
  # Sometimes the string search might not move the index at all, that might lead us to an infinite loop
132
132
  self.index += 1
133
133
 
134
+ self.skip_whitespaces_at()
135
+
134
136
  # We reached the end here
135
137
  if (self.get_char_at() or "}") == "}":
136
138
  continue
137
139
 
140
+ self.skip_whitespaces_at()
141
+
138
142
  # An extreme case of missing ":" after a key
139
143
  if (self.get_char_at() or "") != ":":
140
144
  self.log(
@@ -178,7 +182,7 @@ class JSONParser:
178
182
  value = self.parse_json()
179
183
 
180
184
  # It is possible that parse_json() returns nothing valid, so we stop
181
- if not value:
185
+ if value == "":
182
186
  break
183
187
 
184
188
  if value == "..." and self.get_char_at(-1) == ".":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: json_repair
3
- Version: 0.20.0
3
+ Version: 0.20.1
4
4
  Summary: A package to repair broken json strings
5
5
  Author-email: Stefano Baccianella <4247706+mangiucugna@users.noreply.github.com>
6
6
  License: MIT License
@@ -0,0 +1,7 @@
1
+ json_repair/__init__.py,sha256=IIzSm1DsCRrr8seF3UeMZXwxcq-tE3j-8d1WBxvEJvE,178
2
+ json_repair/json_repair.py,sha256=evtrrG5xGfWBa1tSTW07u03PXP3bGoKsN7A_8WcsN1s,25528
3
+ json_repair-0.20.1.dist-info/LICENSE,sha256=wrjQo8MhNrNCicXtMe3MHmS-fx8AmQk1ue8AQwiiFV8,1076
4
+ json_repair-0.20.1.dist-info/METADATA,sha256=dFTIO7S7G_bZDgNgWHD7Ey7B5qB2Q_9CXHXGycmldsU,7333
5
+ json_repair-0.20.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
6
+ json_repair-0.20.1.dist-info/top_level.txt,sha256=7-VZwZN2CgB_n0NlSLk-rEUFh8ug21lESbsblOYuZqw,12
7
+ json_repair-0.20.1.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- json_repair/__init__.py,sha256=IIzSm1DsCRrr8seF3UeMZXwxcq-tE3j-8d1WBxvEJvE,178
2
- json_repair/json_repair.py,sha256=zYg4tIwZ4rdVkCQ5XVceNQaOz2MT50O7jHJbJ1EpKhk,25446
3
- json_repair-0.20.0.dist-info/LICENSE,sha256=wrjQo8MhNrNCicXtMe3MHmS-fx8AmQk1ue8AQwiiFV8,1076
4
- json_repair-0.20.0.dist-info/METADATA,sha256=2WrsjORPx37e4CqdkdiARwB-VoP5EyjsZaS0hcVnVBo,7333
5
- json_repair-0.20.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
6
- json_repair-0.20.0.dist-info/top_level.txt,sha256=7-VZwZN2CgB_n0NlSLk-rEUFh8ug21lESbsblOYuZqw,12
7
- json_repair-0.20.0.dist-info/RECORD,,