Skip to content

Commit

Permalink
Merge pull request #4 from iw4p/development
Browse files Browse the repository at this point in the history
fix: json loads {} in string
  • Loading branch information
iw4p authored Dec 1, 2023
2 parents 08c422d + 9440ce4 commit d6545d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion partialjson/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""
from .json_parser import JSONParser

__version__ = "0.0.4"
__version__ = "0.0.5"
__author__ = 'Nima Akbarzadeh'
__author_email__ = "[email protected]"
__license__ = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion partialjson/json_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def parse(self, s):
self.on_extra_token(s, data, reminding)
return json.loads(json.dumps(data))
else:
return json.loads({})
return json.loads("{}")

def parse_any(self, s, e):
if not s:
Expand Down

0 comments on commit d6545d3

Please sign in to comment.