weixin_33713503 2015-07-18 17:57 采纳率: 0%
浏览 13

访问奇怪的JSON格式

I am using an API that returns the following JSON:

Example

I want to access the data in "value", but I have no idea how to do it. I don't want to mess around too often, because the API has a limited amount of credits and costs money.

EDIT: Sample JSON:

{
  "method": [
    ["somename"]
  ],
  "answer": [{
    "name": [{
      "domain": "somedomain",
      "date": "somedate",
      "value": "somenumber"
    }]
  }],
  "credits": [{
    "used": 1
  }]
}

EDIT2: I honestly don't get why this is being downvoted.

  • 写回答

4条回答 默认 最新

  • weixin_33694620 2015-07-18 18:05
    关注

    Try this:

    jsonData[1].answer[0][0].value
    
    评论

报告相同问题?

悬赏问题

  • ¥15 需要一个小程序,自动注册苹果id
  • ¥15 关于vmprotect3.8.4虚拟文件一项
  • ¥15 在不用IT调试的情况下怎样能连外网
  • ¥20 C#调用虚拟键盘TabTip.exe
  • ¥15 Qt4代码实现下面的界面
  • ¥15 CCS离散化传递函数与仿真不一致
  • ¥15 prism提示我reinstall prism 如何解决
  • ¥15 asp.core 权限控制怎么做,需要控制到每个方法
  • ¥20 while循环中OLED显示中断中的数据不正确
  • ¥15 这个视频里的stm32f4代码是怎么写的