C# JSON Parsing. Parse escaped JSON

廉价感情. 提交于 2019-12-06 19:55:27

Use Newtonsoft.Json. The library is really good for parsing and generating JSON.

http://json.codeplex.com/

There is a comment recommedning to use a Regex.Unescape().

I work with the .NET 4.5 and this method does not unescape \n and \". You probably read a response from HttpWebResponse or alike. You may want to convert it's response stream to byte array and then play a little bit with converting it to a string.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!