Created
September 18, 2024 21:22
-
-
Save conholdate-gists/b65f3d5a1ca120bc35245814426d12d5 to your computer and use it in GitHub Desktop.
Convert CSV to JSON in C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (Converter converter = new Converter("sample.csv")) | |
{ | |
GroupDocs.Conversion.Options.Convert.WebConvertOptions options = new GroupDocs.Conversion.Options.Convert.WebConvertOptions | |
{ | |
Format = GroupDocs.Conversion.FileTypes.WebFileType.Json | |
}; | |
converter.Convert("converted.json", options); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment