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.
  • 832
  • 1
  • 7
  • 9

2 Answers2

3

Answered here:

How to convert JSON to XML or XML to JSON?

Community
  • 1
  • 1
SolutionYogi
  • 30,954
  • 12
  • 69
  • 77
0

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

Eric Petroelje
  • 58,601
  • 9
  • 123
  • 175