字符串转json方法

字符串:"{"Id":3,"Name":"asd","Age":28,"Birthday":"01  1 2012 12:00AM"}"

转化方法:var s=JSON.parse('{"Id":3,"Name":"asd","Age":28,"Birthday":"01  1 2012 12:00AM"}')

函数:JSON.parse

 

posted on 2013-05-31 10:51  ~紫鱼~  阅读(209)  评论(0编辑  收藏  举报