jQuery MiniUI

 找回密码
 立即注册
查看: 4132|回复: 1
打印 上一主题 下一主题

json时间格式转换报错 [复制链接]

Rank: 1

跳转到指定楼层
楼主
发表于 2013-2-22 17:40:13 |只看该作者 |倒序浏览
表单修改时用了mini.encode()后json的格式为:
[{"id":"b0171c0f-5064-4975-9f54-ebf28666aca6","loginname":"jan3844@gmail.com","dept_id":"rs","salary":"3400","position":"rs2","educational":"2","school":"浙江理工大学","name":"沈臻妍","gender":"2","age":25,"birthday":"1987-03-17T00:00:00","married":"0","country":"","city":"","remarks":""}],不知为什么时间中间会带一个"T",造成后台json数据调用Decode()时转换时间报错

具体错误为java.text.ParseException: Unparseable date: "position",不知道什么原因?

Rank: 9Rank: 9Rank: 9

沙发
发表于 2013-2-22 18:05:47 |只看该作者
是position字段错误把

Archiver|普加软件

GMT+8, 2024-11-6 00:20 , Processed in 1.025132 second(s), 9 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部