Links

Safejson

Module: pyot.utils.safejson

function load -> Any

  • fp: Union[_io.FileIO, _io.BytesIO]
  • kwargs: None
Same as json.load with graceful fallback by returning the read content as is

function loads -> Any

  • content: Union[str, bytes]
  • kwargs: None
Same as json.loads with graceful fallback by returning the passed content as is
Last modified 1yr ago