The second helper method on JsonConvert is DeserializeXmlNode(). LoadXml ( xml ) var jsonText = JsonConvert. string xml = + "Gambardella, Matthew" + "XML Developer's Guide" + "Computer" + "44.95" + "" + "An in-depth look at " + "creating applications with XML." + "" + "" var doc = new XmlDocument () doc. This method takes an XmlNode and serializes it to JSON text. The JsonConvert has two helper methods for converting between JSON and XML. Json.NET supports converting JSON to XML and vice versa using the XmlNodeConverter. How to convert JSON to XML and vice versa in C#ĭecemby Anuraj Estimated read time : 1 min
0 Comments
Leave a Reply. |