当获取json是被转译成多个斜杠组合,去掉斜杠

 

string str = "..........";

分步写

//JsonSerializer serializer = new JsonSerializer();
//TextReader tr = new StringReader(str);
//JsonTextReader jtr = new JsonTextReader(tr);
//object obj = serializer.Deserialize(jtr);

一步完成
//var json = new JsonSerializer().Deserialize(new JsonTextReader(new StringReader(m)));

转载于:https://www.cnblogs.com/taozihua/p/10578949.html

你可能感兴趣的:(当获取json是被转译成多个斜杠组合,去掉斜杠)