开发者

Json.Net library JsonConvert

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜