'Given some JSON data, returns a Python dictionary of the decoded data.'

def from_json(self, content):

    try:
        return json.loads(content)
    except ValueError:
        raise BadRequest(u'Request    is    not    valid    JSON.')
