<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def hook_response(self, response):
        " Detect any failure."
        # Decode content with json.
        response._content = json.loads(response.content)
        return response