I'm using http://json.codeplex.com library. I'm trying to convert XML to JSON and vice-versa.
However they have an example us开发者_Python百科ing JsonConvert class
XmlDocument doc = new XmlDocument();
doc.LoadXml(xml);
string jsonText = JsonConvert.SerializeXmlNode(doc);
I can't find JsonConvert in namespace Newtonsoft.Json. I've only found class JavaScriptConvert.
Any ideas?
You have an old version of Json.NET. JavaScriptConvert was renamed to JsonConvert a couple of years ago.
加载中,请稍侯......
精彩评论