Initialize msg to None if unable to parse the json.