我正在尝试解析一个 json 数组,我遇到了问题。
我的数组是这样的:
配置:{"id":4,"userId":107,"deviceMacAddress":"00:06:66:30:02:3C","medication":
[{"id":11,"version":18,"name":"name1","unit":"mg","forMed":"for1","schedule":[1]},{"id ":45,"version":1,"name":"sdga",,"unit":"mg","forMed":"54234","schedule":[0,1,2,3,4, 5,6]}],
我能够访问药物阵列并打印总阵列,但无法访问阵列内的对象。您能否建议使用 C 语言执行此操作的任何解决方案或示例?