Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Last active February 15, 2023 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GroupDocsGists/d7223aa52bb2ff2656761887bd65a9ab to your computer and use it in GitHub Desktop.
Save GroupDocsGists/d7223aa52bb2ff2656761887bd65a9ab to your computer and use it in GitHub Desktop.
Convert JSON to XML in C#
// 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