JSON

json数据反序列化的问题

字号+ 作者:H5之家 来源:H5之家 2017-10-16 18:14 我要评论( )

var Jsondata=[{MembersMobile:13612268339,MembersName:test,MembersSex:男,MembersAge:23,MembersBirthday:NULL,MembersIDCard:NULL,MembersMarital:NULL,MembersChildren:NULL,MembersJob:NULL,MembersIncome:NULL,MembersLiveCity:NULL,MembersHouseChar

var Jsondata=[{MembersMobile:'13612268339',MembersName:'test',MembersSex:'男',MembersAge:'23',MembersBirthday:'NULL',MembersIDCard:'NULL',MembersMarital:'NULL',MembersChildren:'NULL',MembersJob:'NULL',MembersIncome:'NULL',MembersLiveCity:'NULL',MembersHouseCharecter:'NULL',MembersLiveAddress:'NULL',MembersLiveZipCode:'NULL',MembersPostAddress:'NULL',MembersPostZipCode:'NULL',MembersJobCity:'NULL',MembersCompany:'NULL',MembersDept:'NULL',MembersPosition:'NULL',MembersEmail:'NULL',MembersQQ:'NULL',MembersMSN:'NULL',MembersEmail:'NULL',MembersMobileType:'NULL',MembersSIMType:'NULL',MembersGPRS:'NULL',MembersRank:'NULL',MembersAscription:'NULL',MembersSourceID:'NULL',MembersLoninID:'NULL',MembersPassword:'NULL',MembersFlag:'NULL',RecorderId:'NULL',RecordTime:'NULL',DelecteFlag:'NULL',BlackMenuFlag:'NULL'};


  MembersTbl[] MembersTbls = JsonConvert.DeserializeObject <MembersTbl[]>(Jsondata);

在这里出错:
could not cast or convert from system.string to sysmtem.nullable'[system.datatime]
是什么原因?

 

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

相关文章
  • 解析JSON对象与字符串之间的相互转换

    解析JSON对象与字符串之间的相互转换

    2017-10-17 09:18

  • HttpClient 以及 Json 传递的一些坑

    HttpClient 以及 Json 传递的一些坑

    2017-10-16 18:13

  • Ajax返回html和json格式数据

    Ajax返回html和json格式数据

    2017-10-16 17:00

  • Android笔记(五十) Android中的JSON数据

    Android笔记(五十) Android中的JSON数据

    2017-10-16 17:00

网友点评