def json(self, **kwargs):
if not self.encoding and len(self.content) > <NUM_LIT:3>:<EOL><INDENT>encoding = guess_json_utf(self.content)<EOL>if encoding is not None:<EOL><INDENT>try:<EOL><INDENT>return json.loads(self.content.decode(encoding), **kwargs)<EOL><DEDENT>except UnicodeDecodeError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT><DEDENT>return json.loads(self.text, **kwargs)<EOL>
Returns the json-encoded content of a response, if any.

        :param \*\*kwargs: Optional arguments that ``json.loads`` takes.