如何读取jsonp回应

I have a json file (http://example.com/usr/details?jsonp=parseRespond ) on a another server that gives the response

{
  "id": "5572a7d648b33a462d79145d",
  "avatarHash": null,
  "bio": "",
  "bioData": null,
  "confirmed": false,
  "fullName": "Ender Widgin",
  "idPremOrgsAdmin": null,
  "initials": "EW",
  "memberType": "normal",
  "products": [],
  "status": "disconnected",
  "url": "https://example.com/enderwidgin",
  "username": "enderwidgin",
  "avatarSource": null,
  "email": null,
  "gravatarHash": null,
  "idBoards": [],
  "idOrganizations": [],
  "loginTypes": null,
  "oneTimeMessagesDismissed": null,
  "prefs": null,
  "trophies": [],
  "uploadedAvatarHash": null,
  "premiumFeatures": [],
  "idBoardsPinned": null,
  "organizations": [],
  "boards": [],
  "actions": []
}

How can I write this response in a div

function parseRespond(){ 
 // how to get the data ? 
} 

Thanks in advance!

查看全部
weixin_33695450
weixin_33695450
2015/06/12 07:31
  • json
  • ajax
  • javascript
  • jquery
  • 点赞
  • 收藏
  • 回答
    私信

1个回复