def json_parse(self, content):
        try:
            data = json.loads(content)
        except ValueError, e:
            data = {'meta': { 'status': 500, 'msg': 'Server Error'}, 'response': {"error": "Malformed JSON or HTML was returned."}}
        
        #We only really care about the response if we succeed
        #and the error if we fail
        if data['meta']['status'] in [200, 201, 301]:
            return data['response']
        else:
            return data
alert when an IAM Group has a policy allowing '*'.
dataset/ETHPy150Open tumblr/pytumblr/pytumblr/request.py/TumblrRequest.json_parse--crossover with--dataset/ETHPy150Open Netflix/security_monkey/security_monkey/auditors/iam/iam_group.py/IAMGroupAuditor.check_star_privileges