Handling escape characters in JSON response in C#

前端 未结 2 1234
说谎
说谎 2021-01-27 19:36

I have a rather simple issue that for some reason I can find a help for using SO and Google. I am receiving a JSON reply that looks like this:

\"{
\\\"data\\\":          


        
2条回答
  •  -上瘾入骨i
    2021-01-27 20:20

    Looks like you're getting confused by the value in the debugger. The debugger windows shows an escaped version of the string.

    enter image description here

    You can click on the little magnification icon to open the string in a "text visualizer" to see the actual value of the string.

    enter image description here

提交回复
热议问题