Last active
February 15, 2023 12:52
-
-
Save GroupDocsGists/d7223aa52bb2ff2656761887bd65a9ab to your computer and use it in GitHub Desktop.
Convert JSON to XML 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
// Convert the JSON data to XML format using C# | |
using (Converter converter = new Converter(@"path/sample.json")) | |
{ | |
WebConvertOptions options = new WebConvertOptions | |
{ | |
Format = WebFileType.Xml | |
}; | |
converter.Convert(@"path/jsonToXML.xml", options); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment