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);
}
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.
