JSON string to CSV and CSV to JSON conversion in c#

前端 未结 6 615
滥情空心
滥情空心 2020-11-28 08:01

I\'m working with JSON/CSV files in my asp.net web API project and tried with CSVHelper and ServiceStack.Text libraries but couldn\'t make it work.

The JSON file con

6条回答
  •  暖寄归人
    2020-11-28 08:42

    using System.Globalization;
    
    using (var csv = new CsvWriter(csvString, CultureInfo.CurrentCulture)) {
      ...
    }
    

提交回复
热议问题