def json(self): """ Collect the response body as JSON per :func:`treq.json_content()`. :rtype: Deferred that fires with the decoded JSON when the entire body has been read. """ return json_content(self.original)
def json(self, **kwargs): """ Collect the response body as JSON per :func:`treq.json_content()`. :param kwargs: Any keyword arguments accepted by :py:func:`json.loads` :rtype: Deferred that fires with the decoded JSON when the entire body has been read. """ return json_content(self.original, **kwargs)
def json(self, *args, **kwargs): return json_content(self.original, *args, **kwargs)