Convert to data (xml/json) with advanced options

GroupDocs.Conversion provides DataConvertOptions to give you control over conversion result when convert to data format. Along with common convert options DataConvertOptions has the following additional options:

  • Format - desired result document type. Available options are: Json, Xml

Following code snippet shows how to convert to JSON with advanced options.

using (Converter converter = new Converter("sample.csv"))
    DataConvertOptions options = new DataConvertOptions
        Format = DataFileType.Json
    converter.Convert("converted.json", options);