wince 能用的 Newtonsoft.Json(Json.Net)

开发平台    vs2008

开发机器   windows7

适用移动平台 chs windows mobile 5.0 Pocket PC R2 Emulator

wince 应用 的.Net Compact Framework版本是  .Net Compact Framework Version 3.5 

普通的.Net Framework的Newtonsoft.Json 版本是用不了的

Json35r6 (

Json.NET 3.5 Release 6


就是 这个版本能支持wince的开发


具体下载地址http://json.codeplex.com/releases/view/37810






  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Json.NET http://james.newtonking.com/projects/json-net.aspx http://www.codeplex.com/json/ Description: The Json.NET library makes working with JSON formatted data in .NET simple. Quickly read and write JSON using the JsonReader and JsonWriter or serialize your .NET objects with a single method call using the JsonSerializer. Json.NET's features include: - Lightning fast JsonReader and JsonWriter - The JsonSerializer for quickly converting your .NET objects to JSON and back again - Json.NET can optionally produce well formatted, indented JSON for debugging or display - Attributes like JsonIgnore and JsonProperty can be added to a class to customize how a class is serialized - Ability to convert JSON to and from XML Instructions: 1. Extract Newtonsoft.Json.dll and Newtonsoft.Json.xml from the archive's /bin directory into your own applications. 2. Add a reference to Newtonsoft.Json.dll within Visual Studio.NET to your project. Silverlight: Json.NET has a build that works with the Silverlight .NET runtime. Reference the Newtonsoft.Json.Silverlight.dll from your Silverlight project. License: Copyright (c) 2007 James Newton-King Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Newtonsoft.Json是一个在.NET平台上非常常用的JSON处理库。它提供了一系列功能强大的API,用于在.NET应用程序中进行JSON的序列化和反序列化操作。 在.NET 4平台上使用Newtonsoft.Json非常简单。首先,我们需要将Newtonsoft.Json添加为我们的项目的引用。我们可以从NuGet包管理器中搜索并安装Newtonsoft.Json包。 一旦我们成功引用了Newtonsoft.Json,我们就可以在我们的代码中使用它。首先,我们需要导入Newtonsoft.Json的命名空间。我们可以通过添加以下代码实现: ```csharp using Newtonsoft.Json; ``` 然后,我们就可以开始使用Newtonsoft.Json提供的各种功能。例如,我们可以使用JsonConvert类来将对象序列化为JSON字符串,或将JSON字符串反序列化为对象。下面是一些示例代码: ```csharp // 将对象序列化为JSON字符串 MyObject obj = new MyObject(); string json = JsonConvert.SerializeObject(obj); // 将JSON字符串反序列化为对象 MyObject obj2 = JsonConvert.DeserializeObject<MyObject>(json); ``` 除此之外,Newtonsoft.Json还提供了许多其他有用的功能,例如处理不同的JSON格式(如XML和CSV),处理日期和时间,自定义序列化和反序列化过程等等。 总的来说,Newtonsoft.Json.NET平台上最受欢迎的JSON处理库之一,它提供了一系列简单易用且功能强大的API,使我们能够轻松地在.NET应用程序中进行JSON的序列化和反序列化操作。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值