VOOZH about

URL: https://docs.groupdocs.com/conversion/net/convert-to-data-with-advanced-options/

⇱ Convert to XML or JSON data with advanced options | GroupDocs


Convert to XML or JSON data with advanced options Leave feedback

GroupDocs.Conversion provides the WebConvertOptions class to give you control over the conversion result while converting to JSON, XML or other web data formats. To convert your document to XML or JSON format, specify the desired format using the Format property.

The following code snippet shows how to convert a CSV spreadsheet to JSON format:

using (Converter converter = new Converter("sample.csv"))
{
 WebConvertOptions options = new WebConvertOptions
 {
 Format = WebFileType.Json
 };
 converter.Convert("converted.json", options);
}
👁 Loading

Analyzing your prompt, please hold on...

An error occurred while retrieving the results. Please refresh the page and try again.

👁 Image
© Groupdocs 2001-2026. All Rights Reserved.