为了账号安全,请及时绑定邮箱和手机立即绑定

如何获取json对象中的特定值?

如何获取json对象中的特定值?

慕桂英546537 2019-03-23 18:14:29
{    "id": "some",    "title": "some",    "author": {        "name": "\u95eb\u9759"    },    "link": [{        "@attributes": {            "href": "http://localhost/",            "rel": "some"        }    },    {        "@attributes": {            "href": "http://localhost/",            "rel": "some"        }    },    {        "@attributes": {            "href": "http://localhost/",            "rel": "some"        }    }]}如上,对于服务器返回的json数据,如何获取Link中第一个@attributes的href值?
查看完整描述

3 回答

  • 3 回答
  • 0 关注
  • 2001 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号