[英]How can I convert Xml to Json and vice versa in c#
I'm supprized that I couldn't find this question here. 我觉得我在这里找不到这个问题。 there seems to be few approches out there but none really seem to work.
似乎很少有approches,但似乎没有一个真正起作用。 I found http://james.newtonking.com/projects/json-net.aspx but it very large.
我找到了http://james.newtonking.com/projects/json-net.aspx,但它非常大。 Is there a simple way to convert Xml to Json and vice versa?
有没有一种简单的方法将Xml转换为Json,反之亦然? Thanks,
谢谢,
我发现http://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=Json&ReleaseId=6987这是一个较轻(和较旧)的Json.NET版本,也只需要.Net framework 2.0它只有60K。
超轻解决方案: http : //www.phdcc.com/xml2json.htm
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.