Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I convert Xml to Json and vice versa in c#

Tags:

json

c#

xml

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. I found http://james.newtonking.com/projects/json-net.aspx but it very large. Is there a simple way to convert Xml to Json and vice versa? Thanks,

like image 517
Clangon Avatar asked Nov 15 '22 15:11

Clangon


1 Answers

I found http://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=Json&ReleaseId=6987 which is a lighter (and older) version of Json.NET and also requires only .Net framework 2.0 It's only 60K.

like image 79
Clangon Avatar answered Dec 26 '22 10:12

Clangon