阅读JSON(文本文件)到.NET应用程序 [英] Read JSON (text file) into .NET application

查看:104
本文介绍了阅读JSON(文本文件)到.NET应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在下面的JSON格式的配置文件:

I have a configuration file in the following JSON format:

{

  "key1": "value1",  
  "key2": "value2",  
  "key3": false,  
  "key4": 10,  

}

用户可以设置/取消使用文本编辑器的配置值。不过,我需要在我的C#程序读取它。最新最好的方式来将JSON这样做呢? ,以上按键不与类关联

The user can set/unset the configuration values using a text editor. I however need to read it in my C# application. Whats the best way to do so for JSON? The above keys are not associated with a class.

推荐答案

看看Json.NET:的http://json.codeplex.com

Take a look at Json.NET: http://json.codeplex.com

这篇关于阅读JSON(文本文件)到.NET应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆