C# 在IDE中用string装json字符串的转义处理
2018-10-12 本文已影响0人
f5df0a516b61
由于json中字符很多,行很多,不能依靠\"来转义双引号,如使用@开头,引号转义需要用如下形式("写为"")
string json=@"{
""prop1"":""content1""
}";
由于json中字符很多,行很多,不能依靠\"来转义双引号,如使用@开头,引号转义需要用如下形式("写为"")
string json=@"{
""prop1"":""content1""
}";