开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 1314|回复: 1
收起左侧

[求助] JSON问题

[复制链接]
结帖率:85% (23/27)
发表于 2017-6-14 02:23:45 | 显示全部楼层 |阅读模式   北京市北京市
  1. {"comments":[{"id":102591,"userId":1981111,"userName":"A花花","avatarUrl":"http://wx.qlogo.cn/mmopen/xWnwWYDDn2pbm4b1UVar49Aiaia1iaEUyiarjakBQqhGEbEywOzSDzrv3tKRkxN54j7T415Y3wHU40GeMeRmrvptVh0EeRfbmaBM/0","content":"很喜欢这本书!希望有机会读完!也是我生活中要学习的东西,希望不会晚!","likeCount":0,"isLiked":false,"lastUpdateTime":1497340313000},{"id":102513,"userId":1740251,"userName":"段娟","avatarUrl":"https://file.dushu.io/file/c65fc77918b84e248feea79100bc38e1","content":"越来越离不开读书会啦^_^,谢谢樊老师!","likeCount":1,"isLiked":false,"lastUpdateTime":1497323947000},{"id":102512,"userId":1639282,"userName":"樊红燕","content":"听了樊老师的课,受益匪浅,最近正好遇到了这类问题,评判这个毛病我比较严重,我要学会不评判,不轻易下定论。","likeCount":0,"isLiked":false,"lastUpdateTime":1497323865000},{"id":102507,"userId":1310616,"userName":"王俊丽338602","content":"学习能力的培养故然重要,但社会能力的培养才是最值得我们家长深思的,","likeCount":0,"isLiked":false,"lastUpdateTime":1497322941000},{"id":102438,"userId":1836270,"userName":"李晓兰","content":"感觉自己做错了好多事,希望还来得及补救","likeCount":1,"isLiked":false,"lastUpdateTime":1497316600000},{"id":102334,"userId":1981160,"userName":"高女士","content":"棒棒的,很接地气","likeCount":0,"isLiked":false,"lastUpdateTime":1497279652000},{"id":102295,"userId":1980389,"userName":"陆圣燕","content":"听了樊老师的课,受益匪浅,最近正好遇到了这类问题,里面提到的游戏可以尝试下","likeCount":0,"isLiked":false,"lastUpdateTime":1497274533000},{"id":102284,"userId":1980383,"userName":"taozi","avatarUrl":"http://wx.qlogo.cn/mmopen/xWnwWYDDn2r3ngAiapTOZFXDo2LS9iav7FiaEWd13e3EDWqicdyrbvEYv8q74Omz3AdcKIPicIibya6Uh1TdlriaCTrMeRmUorYkcu3/0","content":"试听一下,感觉不错。","likeCount":0,"isLiked":false,"lastUpdateTime":1497270841000},{"id":102229,"userId":1561930,"userName":"程雪","content":"在孩子小的时候 听到樊老师讲的很多育儿经 特别有用","likeCount":0,"isLiked":false,"lastUpdateTime":1497259114000},{"id":101905,"userId":1974758,"userName":"吴义才","content":"试听中,很好,无意中发现的","likeCount":0,"isLiked":false,"lastUpdateTime":1497169490000},{"id":101435,"userId":1968063,"userName":"温巧灵","content":"谢谢老师,受益匪浅。","likeCount":0,"isLiked":false,"lastUpdateTime":1497088410000},{"id":101382,"userId":1961217,"userName":"张国强","content":"坚持正确的做法,家长首先要改变和坚持下去","likeCount":2,"isLiked":false,"lastUpdateTime":1497079126000},{"id":101179,"userId":668418,"userName":"仲伟欣","content":"听了好几个您教育孩子的内容,感觉特别好。您的孩子真幸运","likeCount":0,"isLiked":false,"lastUpdateTime":1497031362000},{"id":101155,"userId":22700,"userName":"姚向青","content":"听了这本书感觉受益匪浅,不光可以用来教育孩子,培养孩子解决问题的能力,还可以用来培训员工成为一个勇挑重担,敢于负责的人,准备买来好好拜读一下,按照上面的方法去做,可以成为一个专题讲座,讲给员工和家长听。","likeCount":1,"isLiked":false,"lastUpdateTime":1497024356000},{"id":101107,"userId":1765096,"userName":"栗巍","avatarUrl":"https://file.dushu.io/file/760856737ee44618a47ba761016fdaaf","content":"太有用了!","likeCount":2,"isLiked":false,"lastUpdateTime":1497016562000},{"id":101077,"userId":1940017,"userName":"海珍","content":"《如何说孩子才会听 怎么听孩子才肯说》","likeCount":0,"isLiked":false,"lastUpdateTime":1497009754000},{"id":100953,"userId":1959504,"userName":"廖珍艺","avatarUrl":"https://file.dushu.io/file/6044130931384b19b9e4a78d00aec8f5","content":"受益非浅\n","likeCount":0,"isLiked":false,"lastUpdateTime":1496975361000},{"id":100916,"userId":1960937,"userName":"A 梦梦????????","avatarUrl":"http://wx.qlogo.cn/mmopen/xWnwWYDDn2pbm4b1UVar49EKMCbd6fo9BxJJH0lHVffGPhGD3ekBbpSSibzB0k8DNY5xMl71qLIAP9kn1ia9hlT7rWvBy6U9Uz/0","content":"我听的真的是受益匪浅,谢谢!","likeCount":0,"isLiked":false,"lastUpdateTime":1496970828000},{"id":100818,"userId":1363169,"userName":"辛朝霞","avatarUrl":"http://wx.qlogo.cn/mmopen/xWnwWYDDn2o4V6OTlemxbNWNKwl4AdY3OSIAyQk63ib4bFkum9bicA4yXClrLqNRXBvnzN4LicyX17ey3LmiaADBLsRqcoOy30d5/0","content":"感谢樊老师,很是受益匪浅啊","likeCount":0,"isLiked":false,"lastUpdateTime":1496929783000},{"id":100516,"userId":1946572,"userName":"邓飞林","avatarUrl":"https://file.dushu.io/file/4669715eff0c4c86aceea78900c4cd17","content":"今天听了《如何培养孩子的社会能力》这本书,感触很深,很想知道哪儿可以买到这本书","likeCount":0,"isLiked":false,"lastUpdateTime":1496844173000}],"hotComments":[{"id":7338,"userId":22206,"userName":"三元","avatarUrl":"https://file.dushu.io/file/60c300a697df4706932ba5d80097afa1","content":"我觉得是不是每本书能让我们线下阅读呢?","likeCount":92,"isLiked":false,"lastUpdateTime":1452164678000},{"id":10000,"userId":90812,"userName":"王艺熹","avatarUrl":"https://file.dushu.io/file/1b7a4c464da749a280c8a66e007fa3b7","content":"这书听得正是时候,感谢樊老师","likeCount":31,"isLiked":false,"lastUpdateTime":1459515454000},{"id":9957,"userId":89884,"userName":"15074194446","avatarUrl":"https://file.dushu.io/file/8993eada8e4c4ffa87aca5da01049de9","content":"非常感谢老师,里面的例子和讲解,通俗易懂,接地气!","likeCount":19,"isLiked":false,"lastUpdateTime":1459437032000}],"status":1,"tokenExpired":true}”
  2. * “json{"comments":[{"id":102591,"userId":1981111,"userName":"A花花","avatarUrl":"http://wx.qlogo.cn/mmopen/xWnwWYDDn2pbm4b1UVar49Aiaia1iaEUyiarjakBQqhGEbEywOzSDzrv3tKRkxN54j7T415Y3wHU40GeMeRmrvptVh0EeRfbmaBM/0","content":"很喜欢这本书!希望有机会读完!也是我生活中要学习的东西,希望不会晚!","likeCount":0,"isLiked":false,"lastUpdateTime":1497340313000},{"id":102513,"userId":1740251,"userName":"段娟","avatarUrl":"https://file.dushu.io/file/c65fc77918b84e248feea79100bc38e1","content":"越来越离不开读书会啦^_^,谢谢樊老师!","likeCount":1,"isLiked":false,"lastUpdateTime":1497323947000},{"id":102512,"userId":1639282,"userName":"樊红燕","content":"听了樊老师的课,受益匪浅,最近正好遇到了这类问题,评判这个毛病我比较严重,我要学会不评判,不轻易下定论。","likeCount":0,"isLiked":false,"lastUpdateTime":1497323865000},{"id":102507,"userId":1310616,"userName":"王俊丽338602","content":"学习能力的培养故然重要,但社会能力的培养才是最值得我们家长深思的,","likeCount":0,"isLiked":false,"lastUpdateTime":1497322941000},{"id":102438,"userId":1836270,"userName":"李晓兰","content":"感觉自己做错了好多事,希望还来得及补救","likeCount":1,"isLiked":false,"lastUpdateTime":1497316600000},{"id":102334,"userId":1981160,"userName":"高女士","content":"棒棒的,很接地气","likeCount":0,"isLiked":false,"lastUpdateTime":1497279652000},{"id":102295,"userId":1980389,"userName":"陆圣燕","content":"听了樊老师的课,受益匪浅,最近正好遇到了这类问题,里面提到的游戏可以尝试下","likeCount":0,"isLiked":false,"lastUpdateTime":1497274533000},{"id":102284,"userId":1980383,"userName":"taozi","avatarUrl":"http://wx.qlogo.cn/mmopen/xWnwWYDDn2r3ngAiapTOZFXDo2LS9iav7FiaEWd13e3EDWqicdyrbvEYv8q74Omz3AdcKIPicIibya6Uh1TdlriaCTrMeRmUorYkcu3/0","content":"试听一下,感觉不错。","likeCount":0,"isLiked":false,"lastUpdateTime":1497270841000},{"id":102229,"userId":1561930,"userName":"程雪","content":"在孩子小的时候 听到樊老师讲的很多育儿经 特别有用","likeCount":0,"isLiked":false,"lastUpdateTime":1497259114000},{"id":101905,"userId":1974758,"userName":"吴义才","content":"试听中,很好,无意中发现的","likeCount":0,"isLiked":false,"lastUpdateTime":1497169490000},{"id":101435,"userId":1968063,"userName":"温巧灵","content":"谢谢老师,受益匪浅。","likeCount":0,"isLiked":false,"lastUpdateTime":1497088410000},{"id":101382,"userId":1961217,"userName":"张国强","content":"坚持正确的做法,家长首先要改变和坚持下去","likeCount":2,"isLiked":false,"lastUpdateTime":1497079126000},{"id":101179,"userId":668418,"userName":"仲伟欣","content":"听了好几个您教育孩子的内容,感觉特别好。您的孩子真幸运","likeCount":0,"isLiked":false,"lastUpdateTime":1497031362000},{"id":101155,"userId":22700,"userName":"姚向青","content":"听了这本书感觉受益匪浅,不光可以用来教育孩子,培养孩子解决问题的能力,还可以用来培训员工成为一个勇挑重担,敢于负责的人,准备买来好好拜读一下,按照上面的方法去做,可以成为一个专题讲座,讲给员工和家长听。","likeCount":1,"isLiked":false,"lastUpdateTime":1497024356000},{"id":101107,"userId":1765096,"userName":"栗巍","avatarUrl":"https://file.dushu.io/file/760856737ee44618a47ba761016fdaaf","content":"太有用了!","likeCount":2,"isLiked":false,"lastUpdateTime":1497016562000},{"id":101077,"userId":1940017,"userName":"海珍","content":"《如何说孩子才会听 怎么听孩子才肯说》","likeCount":0,"isLiked":false,"lastUpdateTime":1497009754000},{"id":100953,"userId":1959504,"userName":"廖珍艺","avatarUrl":"https://file.dushu.io/file/6044130931384b19b9e4a78d00aec8f5","content":"受益非浅\n","likeCount":0,"isLiked":false,"lastUpdateTime":1496975361000},{"id":100916,"userId":1960937,"userName":"A 梦梦????????","avatarUrl":"http://wx.qlogo.cn/mmopen/xWnwWYDDn2pbm4b1UVar49EKMCbd6fo9BxJJH0lHVffGPhGD3ekBbpSSibzB0k8DNY5xMl71qLIAP9kn1ia9hlT7rWvBy6U9Uz/0","content":"我听的真的是受益匪浅,谢谢!","likeCount":0,"isLiked":false,"lastUpdateTime":1496970828000},{"id":100818,"userId":1363169,"userName":"辛朝霞","avatarUrl":"http://wx.qlogo.cn/mmopen/xWnwWYDDn2o4V6OTlemxbNWNKwl4AdY3OSIAyQk63ib4bFkum9bicA4yXClrLqNRXBvnzN4LicyX17ey3LmiaADBLsRqcoOy30d5/0","content":"感谢樊老师,很是受益匪浅啊","likeCount":0,"isLiked":false,"lastUpdateTime":1496929783000},{"id":100516,"userId":1946572,"userName":"邓飞林","avatarUrl":"https://file.dushu.io/file/4669715eff0c4c86aceea78900c4cd17","content":"今天听了《如何培养孩子的社会能力》这本书,感触很深,很想知道哪儿可以买到这本书","likeCount":0,"isLiked":false,"lastUpdateTime":1496844173000}],"hotComments":[{"id":7338,"userId":22206,"userName":"三元","avatarUrl":"https://file.dushu.io/file/60c300a697df4706932ba5d80097afa1","content":"我觉得是不是每本书能让我们线下阅读呢?","likeCount":92,"isLiked":false,"lastUpdateTime":1452164678000},{"id":10000,"userId":90812,"userName":"王艺熹","avatarUrl":"https://file.dushu.io/file/1b7a4c464da749a280c8a66e007fa3b7","content":"这书听得正是时候,感谢樊老师","likeCount":31,"isLiked":false,"lastUpdateTime":1459515454000},{"id":9957,"userId":89884,"userName":"15074194446","avatarUrl":"https://file.dushu.io/file/8993eada8e4c4ffa87aca5da01049de9","content":"非常感谢老师,里面的例子和讲解,通俗易懂,接地气!","likeCount":19,"isLiked":false,"lastUpdateTime":1459437032000}],"status":1,"tokenExpired":true}”
复制代码
这段JSON 取 ID  和userName  怎么取啊 坐等大大
  
json.解析 (文件)
计次循环首 (json.成员数 (), 计次)
调试输出 (json.取通用属性 (“[”到文本 (计次 - 1)“].userName”, ))
计次循环首 (json.成员数 (), 计次)
调试输出 (json.取通用属性 (“[”到文本 (计次 - 1)“].ID”, ))
计次循环尾 ()
计次循环尾 ()


i支持库列表   支持库注释   
spec特殊功能支持库


这样不行 实在不会JSON解析 来个大大帮下忙


补充内容 (2017-6-14 04:54):
已经自己解决
头像被屏蔽
结帖率:62% (49/79)
发表于 2017-6-14 10:52:50 | 显示全部楼层   山西省晋中市
需要先解析的
回复 支持 反对

使用道具 举报

  高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
网站简介:精易论坛成立于2009年,是一个程序设计学习交流技术论坛,隶属于揭阳市揭东区精易科技有限公司所有。
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表