c# JsonReader读取json字符串

时间:2017-05-26 11:46:30   收藏:0   阅读:577
使用JsonReader读Json字符串:
  
 
string jsonText = @"{""input"" : ""value"", ""output"" : ""result""}";
JsonReader reader = new JsonTextReader(new StringReader(jsonText));
 
while (reader.Read())
{
    Console.WriteLine(reader.TokenType + "\t\t" + reader.ValueType + "\t\t" + reader.Value);
}
 

原文:http://www.cnblogs.com/lbonet/p/6907577.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!