4

Given a stream of JSON, how can I read it as XML. I am aware of System.Runtime.Serialization.Json.XmlJsonReader but it is internal

pn.
  • 852
  • 1
  • 8
  • 9

2 Answers2

3

Answered here:

How to convert JSON to XML or XML to JSON?

Community
  • 1
  • 1
SolutionYogi
  • 31,807
  • 12
  • 70
  • 78
0

Well, JSON isn't XML, so you can't read it as XML. Might want to look into the DataContractJsonSerializer though.

Eric Petroelje
  • 59,820
  • 9
  • 127
  • 177