removed str() around objects to be serialized. As None should stay intact rather than become 'None' (#1932)
This commit is contained in:
parent
10fca1611d
commit
e41900a25c
|
|
@ -79,7 +79,8 @@ def jsonify(obj: Any, safe: bool = True) -> Any:
|
||||||
return str(obj)
|
return str(obj)
|
||||||
if hasattr(obj, "__dict__"):
|
if hasattr(obj, "__dict__"):
|
||||||
return vars(obj)
|
return vars(obj)
|
||||||
return str(obj)
|
|
||||||
|
return obj
|
||||||
|
|
||||||
class JSON(json.JSONEncoder, json.JSONDecoder):
|
class JSON(json.JSONEncoder, json.JSONDecoder):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue