exception documentation

class JSONDecodeError(InvalidJSONError, CompatJSONDecodeError): (source)

View In Hierarchy

Couldn't decode the text into json

Method __init__ Construct the JSONDecodeError instance first with all args. Then use it's args to construct the IOError so that the json specific args aren't used as IOError specific args and the error message from JSONDecodeError is preserved.

Inherited from RequestException (via InvalidJSONError):

Instance Variable request Undocumented
Instance Variable response Undocumented
def __init__(self, *args, **kwargs): (source)

Construct the JSONDecodeError instance first with all args. Then use it's args to construct the IOError so that the json specific args aren't used as IOError specific args and the error message from JSONDecodeError is preserved.