简体   繁体   中英

How to read json with XmlReader

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM