Module: pyot.utils.safejson
pyot.utils.safejson
load
Any
fp: Union[_io.FileIO, _io.BytesIO]
fp
Union[_io.FileIO, _io.BytesIO]
kwargs: None
kwargs
None
Same as json.load with graceful fallback by returning the read content as is
loads
content: Union[str, bytes]
content
Union[str, bytes]
Same as json.loads with graceful fallback by returning the passed content as is
Last updated 3 years ago