'Verify that the enclosed manifest.json is a valid and parsable JSON
file.'

def validate_json(self, contents):

    try:
        decoded_data = smart_unicode(strip_bom(contents))
    except UnicodeDecodeError:
        self.error('INVALID_JSON_ENCODING')
    try:
        return json.loads(decoded_data)
    except ValueError:
        self.error('INVALID_JSON')
