Serialize an Object Using JSON
2011-09-28 15:45
471 查看
When we intend to serialize an object via JSON, we need to use DataContractJsonSerializer class , it is necessary to add two references below:
System.ServiceModel.Web
System.Runtime.Serialization.Json
If you want to add these two references, you need to change the Project’s property as the image below inlustrated
when vs2010 create a project, you use .NET Framework 4 Client Profile defaultly.
System.ServiceModel.Web
System.Runtime.Serialization.Json
If you want to add these two references, you need to change the Project’s property as the image below inlustrated
when vs2010 create a project, you use .NET Framework 4 Client Profile defaultly.
相关文章推荐
- using JavaScriptSerializer to serialize object to json
- post a json object with an array using curl
- Serialize an object using XMLTag(s): XML(JAVA对象序列化成XML)
- Convert an object into Json using SBJson or other JSON library
- (转)JSONObject的toBean 和 fromObject
- @Html.Raw() 与Newtonsoft.Json.JsonConvert.SerializeObject()
- json.net的常用语句JsonConvert.SerializeObject(对象)
- 使用net.sf.json包提供的JSONObject.toBean方法时,日期转化错误解决办法
- JSONObject.toBean 报java.lang.ClassCastException: java.lang.Class cannot be cast to **
- JSONObject.toBean解析日期异常
- Using an NSAnimation Object
- Extjs4---json处理日期的问题,JSONObject.toBean转换日期时显示当前日期
- JSONObject的toBean 和 fromObject
- jsonobject.tobean date的解决办法
- Swift*Cannot invoke 'jsonObject' with an argument list of type
- JSONObject.toBean中日期格式数据转换失效的解决办法!
- JSONObject.toBean中日期格式数据转换失效的解决办法! .
- JSONObject的toBean 和 fromObject
- JSONObject的toBean 和 fromObject
- 【译】 Using JSON (JavaScript Object Notation) with Yahoo! Web Services(z)