partialjson 0.0.3__tar.gz → 0.0.4__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: partialjson
3
- Version: 0.0.3
3
+ Version: 0.0.4
4
4
  Summary: Parse incomplete or partial json
5
5
  Home-page: https://github.com/iw4p/partialjson
6
6
  Author: Nima Akbarzadeh
@@ -5,7 +5,7 @@ A great wrapped library for downloading from torrent.
5
5
  """
6
6
  from .json_parser import JSONParser
7
7
 
8
- __version__ = "0.0.3"
8
+ __version__ = "0.0.4"
9
9
  __author__ = 'Nima Akbarzadeh'
10
10
  __author_email__ = "iw4p@protonmail.com"
11
11
  __license__ = "MIT"
@@ -33,9 +33,9 @@ class JSONParser:
33
33
  self.last_parse_reminding = reminding
34
34
  if self.on_extra_token and reminding:
35
35
  self.on_extra_token(s, data, reminding)
36
- return json.dumps(data)
36
+ return json.loads(json.dumps(data))
37
37
  else:
38
- return json.dumps({})
38
+ return json.loads({})
39
39
 
40
40
  def parse_any(self, s, e):
41
41
  if not s:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: partialjson
3
- Version: 0.0.3
3
+ Version: 0.0.4
4
4
  Summary: Parse incomplete or partial json
5
5
  Home-page: https://github.com/iw4p/partialjson
6
6
  Author: Nima Akbarzadeh
File without changes
File without changes
File without changes
File without changes