weixin_52235982 2021-12-10 16:32 采纳率: 0%
浏览 139

jsoncpp如何读取JSON文件中的多个子节点数组,想得到每个points中的数据

{
  "version": "4.5.11",
  "flags": {},
  "shapes": [
    {
      "label": "1",
      "points": [
        [
          1100.0,
          652.542372881356
        ],
        [
          1130.5084745762713,
          723.728813559322
        ]
      ],
      "group_id": null,
      "shape_type": "circle",
      "flags": {}
    },
    {
      "label": "1",
      "points": [
        [
          828.8135593220339,
          679.6610169491526
        ],
        [
          849.1525423728814,
          749.1525423728814
        ]
      ],
      "group_id": null,
      "shape_type": "circle",
      "flags": {}
    },
    {
      "label": "1",
      "points": [
        [
          1252.542372881356,
          467.79661016949154
        ],
        [
          1259.322033898305,
          538.9830508474577
        ]
      ],
      "group_id": null,
      "shape_type": "circle",
      "flags": {}
    },
    {
      "label": "1",
      "points": [
        [
          1862.7118644067798,
          455.93220338983053
        ],
        [
          1898.3050847457628,
          528.8135593220339
        ]
      ],
      "group_id": null,
      "shape_type": "circle",
      "flags": {}
    }
}

  • 写回答

1条回答 默认 最新

  • 崽崽的谷雨 2021-12-10 16:36
    关注

    循环 一下 获取 point属性

    评论

报告相同问题?

问题事件

  • 创建了问题 12月10日

悬赏问题

  • ¥60 如何批量获取json的url
  • ¥15 对法兰连接元件所承受的表面载荷等效转化为法兰开孔接触面上的等效表面载荷?
  • ¥15 comsol仿真压阻传感器
  • ¥15 Python线性规划函数optimize.linprog求解为整数
  • ¥15 llama3中文版微调
  • ¥15 pg数据库导入数据序列重复
  • ¥15 三分类机器学习模型可视化分析
  • ¥15 本地测试网站127.0.0.1 已拒绝连接,如何解决?(标签-ubuntu)
  • ¥50 Qt在release捕获异常并跟踪堆栈(有Demo,跑一下环境再回答)
  • ¥30 python,LLM 文本提炼