怎么才能过滤到json中的回车符
例如:将{
"totalCount": "24",
"articleInfoList": [
{
"Articleid ": "1",
"Articletitle ": "市委组织部举办全市人才工作香港学习培训班",
"articleContent ": "<div style="layout-grid:15.6pt none;" class="Section1">\r
<p style="text-align:center;" class="MsoNormal" align="center"><b style="mso-bidi-font-weight:normal;"><span style="font-family:宋体;color:red;font-size:22pt;mso-font-kerning:0pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';mso-bidi-font-family:宋体;">市委组织部举办全市人才工作香港学习培训班</span></b><b style="mso-bidi-font-weight:normal;"><span style="color:red;font-size:22pt;mso-font-kerning:0pt;mso-bidi-font-family:宋体;" lang="EN-US"><!--?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /--><?xml:namespace prefix = o /><o:p></o:p></span></b></p>\r<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>\r"
}
]
}
转换成
{
"totalCount": "24",
"articleInfoList": [
{
"Articleid ": "1",
"Articletitle ": "市委组织部举办全市人才工作香港学习培训班",
"articleContent ": "<div style="layout-grid:15.6pt none;" class="Section1">\r<p style="text-align:center;" class="MsoNormal" align="center"><b style="mso-bidi-font-weight:normal;"><span style="font-family:宋体;color:red;font-size:22pt;mso-font-kerning:0pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';mso-bidi-font-family:宋体;">市委组织部举办全市人才工作香港学习培训班</span></b><b style="mso-bidi-font-weight:normal;"><span style="color:red;font-size:22pt;mso-font-kerning:0pt;mso-bidi-font-family:宋体;" lang="EN-US"><!--?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /--><?xml:namespace prefix = o /><o:p></o:p></span></b></p>\r<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>\r"
}
]
}
在json中,只要出现换行就不能识别,就像c#中的字符串一样,换行后就出错了
(string a="sadsadsadasdasdsadsadsad"正确,而
string aa="sadsadsadasdasd
sadsadsad"是错误的)
请求替换掉json数据