【发布时间】:2014-03-21 17:03:30
【问题描述】:
我想将此字符串解析为 c# 类对象。我实际上还有另一个问题,为什么它有\r\n,我先将这些字符串保存到isolatedstoragefile,然后那个\r\n 就在那里。感谢您的帮助,我的想法已经用完了,我几乎记不起到目前为止我尝试了什么。
"{\r\n \"chunks\": [\r\n \"Moyes insists he has felt no pressure from above at Old Trafford while the hierarchy insisted their position had not changed after Sunday.\",\r\n \"Moyes has had plenty of criticism this season so it would be unfair not to give him credit where it is due.\",\r\n \"Should Manchester City pitch up at Old Trafford next Tuesday and treat them with the same contempt as Liverpool did in the 3-0 loss on Sunday the questions surrounding Moyes will return.\",\r\n \"\\n\\nMoyes will exercise caution - but after so many miserable moments this season he fully deserved his finest night since taking over from Ferguson.\",\r\n \"It had to be because anything other than a passage into the Champions League quarter-finals by beating a mediocre Olympiakos would have increased the pressure on his position at Old Trafford.\"\r\n ],\r\n \"id\": 87,\r\n \"interest\": \"Football\",\r\n \"interest_id\": 2,\r\n \"main_image\": \"http://news.bbcimg.co.uk/media/images/73692000/jpg/_73692749_a3f7341f-30c2-404e-a384-0478c4e6f9a0.jpg\",\r\n \"published_at\": 1395299199,\r\n \"publisher_id\": 5,\r\n \"publisher_name\": \"BBC - Football\",\r\n \"source_url\": \"http://www.bbc.co.uk/sport/0/football/26658237\",\r\n \"title\": \"Man Utd rally gives respite to Moyes\"\r\n}"
【问题讨论】:
-
“另一个问题”是什么意思?您还没有描述第一个问题 - 如果您不记得到目前为止您已经尝试过什么,我们将很难为您提供帮助。请发布您到目前为止拥有的内容,以及出了什么问题。另请说明您如何看待
\r\n- 如果只是在调试器中,那么它们只是为您转义的换行符就在调试器中。
标签: c# json windows-phone