c# 对象存cookie
摘要:下载并引用Newtonsoft.Json.dll 对象转json,然后存cookies string xxx= Newtonsoft.Json.JsonConvert.SerializeObject(items); json从cookie取出来,转换对象使用 var bbb= Newtonsoft.
阅读全文
posted @
2018-05-25 16:48
dm3344
阅读(181)
推荐(0) 编辑
C# JArray与JObject 的使用
摘要:STEP1、using Newtonsoft.Json.Linq; STEP2 如何获取json里的某个属性(节点)值,对其删改,新增 以上的例子可交互灵活使用 注意事项,JArray 只能用来查找索引的项的对象,找到对象需要转换为 JObject,再查找对应的属性值 其他写法补充 1、属性下嵌套j
阅读全文
posted @
2015-06-09 11:51
dm3344
阅读(132739)
推荐(8) 编辑
JSON在C# 后台的格式
摘要:stringjson="[{\"column1\":\"5678-ef24-4bc6-8b18-f47ade4afa29\",\"column2\":\"\\/Date(1365177600000+0800)\\/\",\"column3\":\"这是1120\",\"column4\":\"\\/Date(1365436800000+0800)\\/\",\"column5\":null,\"c
阅读全文
posted @
2013-04-10 14:39
dm3344
阅读(314)
推荐(0) 编辑
dataset转json的类
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Text;using System.Reflection;using System.Collections;using System.Data;using System.Data.Common;/// <summary>/// Summary description for FormatToJson/// </summary>public class FormatToJson{ pub
阅读全文
posted @
2012-05-09 11:54
dm3344
阅读(7309)
推荐(0) 编辑