static void Main(string[] args) { var data = File.OpenRead(XUtil.sourceFileLocation); StreamReader reader = new StreamReader(data); string json = reader.ReadToEnd(); CSet cs = JsonConvert.DeserializeObject <CSet>(json); XUtil xUtil = new XUtil(); xUtil.CreateExcel(cs); }