in News

Xml to JSON references

I was working on a asp.net project using c# and JavaScript(Ajax) and came across of using JSON instead of XML data to transfer to client side.
The application is a reporting tool and doesn’t require to updatte db at all, which is very straightforward.

Anyways i found a class that converts xml into json format and it is wirtten in C# language. And also i found one for php. smile.gif

C# xml to Json conversion code

Php xml to Json conversion code

When I tested c# code, it broke while iterating in XmlToJSONnode method. The xml data is from DataSet.getXml() method. Once I get it to work, I’ll post what went wrong and what would be a solution for that.