开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

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

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


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

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

查看: 371|回复: 8
收起左侧

[已解决] 一段json解析不来数据,怎么办

 关闭 [复制链接]
结帖率:96% (22/23)
发表于 2024-11-4 00:01:07 | 显示全部楼层 |阅读模式   四川省达州市
120精币
  
{"msg":"success","code":0,"data":{"20241121":[{"resourceId":"3143","regCost":"40.00","week":"星期四","type":"专家","arrStatus":1,"numSchedule":[{"scheduleDate":"2024-11-21","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"08:00","stEndTime":"08:30","timeAllCount":4,"timeOrderedCount":1},{"scheduleDate":"2024-11-21","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"08:30","stEndTime":"09:00","timeAllCount":5,"timeOrderedCount":0},{"scheduleDate":"2024-11-21","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"09:00","stEndTime":"09:30","timeAllCount":6,"timeOrderedCount":0},{"scheduleDate":"2024-11-21","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"09:30","stEndTime":"10:00","timeAllCount":4,"timeOrderedCount":0},{"scheduleDate":"2024-11-21","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"10:00","stEndTime":"10:30","timeAllCount":6,"timeOrderedCount":0}]}],"- -{"resourceId":"3143","regCost":"40.00","week":"星期四","type":"专家","arrStatus":1,"numSchedule":[{"scheduleDate":"2024-11-07","appLimitCount":200,"appOrderedCount":1,"timeCode":12,"stStartTime":"08:00","stEndTime":"08:30","timeAllCount":4,"timeOrderedCount":2},{"scheduleDate":"2024-11-07","appLimitCount":200,"appOrderedCount":1,"timeCode":12,"stStartTime":"08:30","stEndTime":"09:00","timeAllCount":5,"timeOrderedCount":0},{"scheduleDate":"2024-11-07","appLimitCount":200,"appOrderedCount":1,"timeCode":12,"stStartTime":"09:00","stEndTime":"09:30","timeAllCount":6,"timeOrderedCount":1},{"scheduleDate":"2024-11-07","appLimitCount":200,"appOrderedCount":1,"timeCode":12,"stStartTime":"09:30","stEndTime":"10:00","timeAllCount":4,"timeOrderedCount":0},{"scheduleDate":"2024-11-07","appLimitCount":200,"appOrderedCount":1,"timeCode":12,"stStartTime":"10:00","stEndTime":"10:30","timeAllCount":6,"timeOrderedCount":0}]}],"- -{"resourceId":"3143","regCost":"40.00","week":"星期一","type":"专家","arrStatus":1,"numSchedule":[{"scheduleDate":"2024-11-18","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"08:00","stEndTime":"08:30","timeAllCount":4,"timeOrderedCount":1},{"scheduleDate":"2024-11-18","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"08:30","stEndTime":"09:00","timeAllCount":5,"timeOrderedCount":0},{"scheduleDate":"2024-11-18","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"09:00","stEndTime":"09:30","timeAllCount":6,"timeOrderedCount":1},{"scheduleDate":"2024-11-18","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"09:30","stEndTime":"10:00","timeAllCount":4,"timeOrderedCount":0},{"scheduleDate":"2024-11-18","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"10:00","stEndTime":"10:30","timeAllCount":6,"timeOrderedCount":0}]}],"- -{"resourceId":"3143","regCost":"40.00","week":"星期一","type":"专家","arrStatus":1,"numSchedule":[{"scheduleDate":"2024-11-04","appLimitCount":30,"appOrderedCount":3,"timeCode":12,"stStartTime":"08:00","stEndTime":"08:30","timeAllCount":6,"timeOrderedCount":3},{"scheduleDate":"2024-11-04","appLimitCount":30,"appOrderedCount":3,"timeCode":12,"stStartTime":"08:30","stEndTime":"09:00","timeAllCount":6,"timeOrderedCount":1},{"scheduleDate":"2024-11-04","appLimitCount":30,"appOrderedCount":3,"timeCode":12,"stStartTime":"09:00","stEndTime":"09:30","timeAllCount":6,"timeOrderedCount":1},{"scheduleDate":"2024-11-04","appLimitCount":30,"appOrderedCount":3,"timeCode":12,"stStartTime":"09:30","stEndTime":"10:00","timeAllCount":6,"timeOrderedCount":1},{"scheduleDate":"2024-11-04","appLimitCount":30,"appOrderedCount":3,"timeCode":12,"stStartTime":"10:00","stEndTime":"10:30","timeAllCount":6,"timeOrderedCount":1}]}],"- -{"resourceId":"3143","regCost":"40.00","week":"星期四","type":"专家","arrStatus":1,"numSchedule":[{"scheduleDate":"2024-11-14","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"08:00","stEndTime":"08:30","timeAllCount":4,"timeOrderedCount":1},{"scheduleDate":"2024-11-14","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"08:30","stEndTime":"09:00","timeAllCount":5,"timeOrderedCount":0},{"scheduleDate":"2024-11-14","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"09:00","stEndTime":"09:30","timeAllCount":6,"timeOrderedCount":1},{"scheduleDate":"2024-11-14","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"09:30","stEndTime":"10:00","timeAllCount":4,"timeOrderedCount":0},{"scheduleDate":"2024-11-14","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"10:00","stEndTime":"10:30","timeAllCount":6,"timeOrderedCount":1}]}],"- -{"resourceId":"3143","regCost":"40.00","week":"星期一","type":"专家","arrStatus":1,"numSchedule":[{"scheduleDate":"2024-11-11","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"08:00","stEndTime":"08:30","timeAllCount":4,"timeOrderedCount":0},{"scheduleDate":"2024-11-11","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"08:30","stEndTime":"09:00","timeAllCount":5,"timeOrderedCount":1},{"scheduleDate":"2024-11-11","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"09:00","stEndTime":"09:30","timeAllCount":6,"timeOrderedCount":2},{"scheduleDate":"2024-11-11","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"09:30","stEndTime":"10:00","timeAllCount":4,"timeOrderedCount":0},{"scheduleDate":"2024-11-11","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"10:00","stEndTime":"10:30","timeAllCount":6,"timeOrderedCount":0}]}]}}



补充内容 (2024-11-4 06:48):
各位感谢,确实是我复制失误了。源文本来了, 还是解析不出来。

最佳答案

查看完整内容

精易助手,精易模块写代码,取数据没任何问题,不知道你啥意思

回答提醒:如果本帖被关闭无法回复,您有更好的答案帮助楼主解决,请发表至 源码区 可获得加分喔。
友情提醒:本版被采纳的主题可在 申请荣誉值 页面申请荣誉值,获得 1点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。
快捷通道:申请荣誉值无答案申请取消悬赏投诉有答案未采纳为最佳

签到天数: 22 天

发表于 2024-11-4 00:01:08 | 显示全部楼层   四川省宜宾市
iamafailor 发表于 2024-11-4 23:23
你用的什么工具,我是可以解析,但是获取不到值啊,用取通用属性 获取的都是空 ...

精易助手,精易模块写代码,取数据没任何问题,不知道你啥意思
回复

使用道具 举报

结帖率:100% (10/10)

签到天数: 4 天

发表于 2024-11-4 00:10:41 | 显示全部楼层   广东省梅州市
14","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"10:00","stEndTime":"10:30","timeAllCount":6,"timeOrderedCount":1}]}],"- -{"resourceId":"3143","regCost":"40.00","week":"星期一","type":"专家","arrStatus":1,"numSchedule":[{"scheduleDate":"2024-11-

其中,"timeOrderedCount":1}]}],"- -{"resourceId":"3143"      存在符号"- -{" 这种是json格式是错误的,要先去处理掉这些不规范的符号后,在解析就可以了
回复

使用道具 举报

签到天数: 22 天

发表于 2024-11-4 00:27:39 | 显示全部楼层   四川省宜宾市
  
子程序名返回值类型公开备 注
_按钮1_被单击  
变量名类 型静态数组备 注
json类_json 
调试输出 (json.解析 (子文本替换 ( #常量1, “],”#引号“- -”, “,”, , , )))


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

回复

使用道具 举报

结帖率:100% (3/3)

签到天数: 22 天

发表于 2024-11-4 00:28:25 | 显示全部楼层   福建省莆田市
接口被你埋坑了,把(],"- -)替换成(,)就好
回复

使用道具 举报

结帖率:96% (22/23)

签到天数: 22 天

 楼主| 发表于 2024-11-4 06:48:58 | 显示全部楼层   四川省达州市
LEOONL 发表于 2024-11-4 00:27
[e=0].版本 2
.支持库 spec

[HTML] 纯文本查看 复制代码
{"msg":"success","code":0,"data":{"2024-11-21":[{"resourceId":"3143","regCost":"40.00","week":"星期四","type":"专家","arrStatus":1,"numSchedule":[{"scheduleDate":"2024-11-21","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"08:00","stEndTime":"08:30","timeAllCount":4,"timeOrderedCount":1},{"scheduleDate":"2024-11-21","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"08:30","stEndTime":"09:00","timeAllCount":5,"timeOrderedCount":0},{"scheduleDate":"2024-11-21","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"09:00","stEndTime":"09:30","timeAllCount":6,"timeOrderedCount":0},{"scheduleDate":"2024-11-21","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"09:30","stEndTime":"10:00","timeAllCount":4,"timeOrderedCount":0},{"scheduleDate":"2024-11-21","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"10:00","stEndTime":"10:30","timeAllCount":6,"timeOrderedCount":0}]}],"2024-11-07":[{"resourceId":"3143","regCost":"40.00","week":"星期四","type":"专家","arrStatus":1,"numSchedule":[{"scheduleDate":"2024-11-07","appLimitCount":200,"appOrderedCount":1,"timeCode":12,"stStartTime":"08:00","stEndTime":"08:30","timeAllCount":4,"timeOrderedCount":2},{"scheduleDate":"2024-11-07","appLimitCount":200,"appOrderedCount":1,"timeCode":12,"stStartTime":"08:30","stEndTime":"09:00","timeAllCount":5,"timeOrderedCount":0},{"scheduleDate":"2024-11-07","appLimitCount":200,"appOrderedCount":1,"timeCode":12,"stStartTime":"09:00","stEndTime":"09:30","timeAllCount":6,"timeOrderedCount":1},{"scheduleDate":"2024-11-07","appLimitCount":200,"appOrderedCount":1,"timeCode":12,"stStartTime":"09:30","stEndTime":"10:00","timeAllCount":4,"timeOrderedCount":0},{"scheduleDate":"2024-11-07","appLimitCount":200,"appOrderedCount":1,"timeCode":12,"stStartTime":"10:00","stEndTime":"10:30","timeAllCount":6,"timeOrderedCount":0}]}],"2024-11-18":[{"resourceId":"3143","regCost":"40.00","week":"星期一","type":"专家","arrStatus":1,"numSchedule":[{"scheduleDate":"2024-11-18","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"08:00","stEndTime":"08:30","timeAllCount":4,"timeOrderedCount":1},{"scheduleDate":"2024-11-18","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"08:30","stEndTime":"09:00","timeAllCount":5,"timeOrderedCount":0},{"scheduleDate":"2024-11-18","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"09:00","stEndTime":"09:30","timeAllCount":6,"timeOrderedCount":1},{"scheduleDate":"2024-11-18","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"09:30","stEndTime":"10:00","timeAllCount":4,"timeOrderedCount":0},{"scheduleDate":"2024-11-18","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"10:00","stEndTime":"10:30","timeAllCount":6,"timeOrderedCount":0}]}],"2024-11-04":[{"resourceId":"3143","regCost":"40.00","week":"星期一","type":"专家","arrStatus":1,"numSchedule":[{"scheduleDate":"2024-11-04","appLimitCount":30,"appOrderedCount":3,"timeCode":12,"stStartTime":"08:00","stEndTime":"08:30","timeAllCount":6,"timeOrderedCount":3},{"scheduleDate":"2024-11-04","appLimitCount":30,"appOrderedCount":3,"timeCode":12,"stStartTime":"08:30","stEndTime":"09:00","timeAllCount":6,"timeOrderedCount":1},{"scheduleDate":"2024-11-04","appLimitCount":30,"appOrderedCount":3,"timeCode":12,"stStartTime":"09:00","stEndTime":"09:30","timeAllCount":6,"timeOrderedCount":1},{"scheduleDate":"2024-11-04","appLimitCount":30,"appOrderedCount":3,"timeCode":12,"stStartTime":"09:30","stEndTime":"10:00","timeAllCount":6,"timeOrderedCount":1},{"scheduleDate":"2024-11-04","appLimitCount":30,"appOrderedCount":3,"timeCode":12,"stStartTime":"10:00","stEndTime":"10:30","timeAllCount":6,"timeOrderedCount":1}]}],"2024-11-14":[{"resourceId":"3143","regCost":"40.00","week":"星期四","type":"专家","arrStatus":1,"numSchedule":[{"scheduleDate":"2024-11-14","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"08:00","stEndTime":"08:30","timeAllCount":4,"timeOrderedCount":1},{"scheduleDate":"2024-11-14","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"08:30","stEndTime":"09:00","timeAllCount":5,"timeOrderedCount":0},{"scheduleDate":"2024-11-14","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"09:00","stEndTime":"09:30","timeAllCount":6,"timeOrderedCount":1},{"scheduleDate":"2024-11-14","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"09:30","stEndTime":"10:00","timeAllCount":4,"timeOrderedCount":0},{"scheduleDate":"2024-11-14","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"10:00","stEndTime":"10:30","timeAllCount":6,"timeOrderedCount":1}]}],"2024-11-11":[{"resourceId":"3143","regCost":"40.00","week":"星期一","type":"专家","arrStatus":1,"numSchedule":[{"scheduleDate":"2024-11-11","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"08:00","stEndTime":"08:30","timeAllCount":4,"timeOrderedCount":0},{"scheduleDate":"2024-11-11","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"08:30","stEndTime":"09:00","timeAllCount":5,"timeOrderedCount":1},{"scheduleDate":"2024-11-11","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"09:00","stEndTime":"09:30","timeAllCount":6,"timeOrderedCount":2},{"scheduleDate":"2024-11-11","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"09:30","stEndTime":"10:00","timeAllCount":4,"timeOrderedCount":0},{"scheduleDate":"2024-11-11","appLimitCount":200,"appOrderedCount":0,"timeCode":12,"stStartTime":"10:00","stEndTime":"10:30","timeAllCount":6,"timeOrderedCount":0}]}]}}
回复

使用道具 举报

签到天数: 22 天

发表于 2024-11-4 11:10:12 | 显示全部楼层   四川省宜宾市
iamafailor 发表于 2024-11-4 06:48
[mw_shl_code=html,true]{"msg":"success","code":0,"data":{"2024-11-21":[{"resourceId":"3143","regCo ...

?? 直接就能解析成功,没问题啊
回复

使用道具 举报

结帖率:96% (22/23)

签到天数: 22 天

 楼主| 发表于 2024-11-4 23:23:17 | 显示全部楼层   四川省达州市
LEOONL 发表于 2024-11-4 11:10
?? 直接就能解析成功,没问题啊

你用的什么工具,我是可以解析,但是获取不到值啊,用取通用属性 获取的都是空
回复

使用道具 举报

结帖率:100% (1/1)

签到天数: 19 天

发表于 2024-11-5 09:10:47 | 显示全部楼层   浙江省绍兴市
iamafailor 发表于 2024-11-4 06:48
[mw_shl_code=html,true]{"msg":"success","code":0,"data":{"2024-11-21":[{"resourceId":"3143","regCo ...

精易编程助手解析没问题
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

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

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

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