Clangon
Clangon

Reputation: 1408

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. 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,

Upvotes: 5

Views: 11211

Answers (2)

missaghi
missaghi

Reputation: 5090

Super light solution: http://www.phdcc.com/xml2json.htm

Upvotes: 0

Clangon
Clangon

Reputation: 1408

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.

Upvotes: 1

Related Questions