首页 新闻 会员 周边

求助高手,json包哪个第三方的包可以实现如下序列化。

0
悬赏园豆:5 [已关闭问题] 关闭于 2013-12-12 19:00

1.请求参数的数据结构:

{“userId”:uid,”searchCondition”:”{“stationStatus”:1,”workPeriodId”:2,”districtId”:20}”,”searchIndex”:0,”maxCount”:20,”sessionId”:”id”}

2.结果数据结构:

{“code”:200,”resultCount”:5,”stationList”:[{json obj<stationInfo> },{json obj<stationInfo>}…]}

问题补充:

就是一个json对象再包含json对象或者json数组

net668的主页 net668 | 初学一级 | 园豆:5
提问于:2013-12-12 09:01
< >
分享
所有回答(7)
0

{json obj<stationInfo> } 这是什么意思

 

参考一下这个:

http://james.newtonking.com/json/help/index.html?topic=html/Samples.htm

Yu | 园豆:12980 (专家六级) | 2013-12-12 09:14
0

googel 提供的gson

番茄土豆 | 园豆:202 (菜鸟二级) | 2013-12-12 09:21
0

没用过

{json obj<stationInfo> },

angelshelter | 园豆:9887 (大侠五级) | 2013-12-12 09:24

这是sjon对象吗。

支持(0) 反对(0) net668 | 园豆:5 (初学一级) | 2013-12-12 09:52
0

是不是对象里嵌套对象呀,好像支持json序列化和反序列化的都支持吧

junjieok | 园豆:779 (小虾三级) | 2013-12-12 10:09
1

试试这个 Newtonsoft.Json

水晶途途 | 园豆:1443 (小虾三级) | 2013-12-12 10:31
0

基本都支持,Json.Net(Newtonsoft.Json),FastJson,LitJson等等...

幻天芒 | 园豆:37175 (高人七级) | 2013-12-12 12:41
0

感谢各位的支持,我已经找到解决方案了。

http://www.cnblogs.com/netflu/archive/2008/12/30/1365252.html

此贴已说明 ,需要学习可以看下。

net668 | 园豆:5 (初学一级) | 2013-12-12 18:59
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册