Find solution

How to convert xml to json in c#?

Check our answers to ‘How to convert xml to json in c#?’ - we found 19 replies and comments relevant to this matter. The best answers are submitted by users of Stack Overflow, Quora and Google Answers.

Best solution

  • (don't ?) use JavaScriptSerializer to convert xml file (of unknown schema) to json in c#

    Is JavascriptSerializer the "tool" to convert an xml file (of unknown schema) into a json string ? There are some threads here dealing about how to convert xml to json in c#. And some recommended dedicated solutions ( But in those threads there are always one suggesting using JavaScriptSerializer. But there is never clear explanation on how to do it. One always elude it or start with an object instead of an xml. To make it clear : I don't look after...


    I think you could use in order to receive a unknown xml into a json object: string xml = @...

    Mark as irrelevant Undo

Other solutions