{
"useraddresses":{
"address_id":"46",
"user_id":"89919",
"address_title":"test",
"address_type":"1",
"street_address":"34",
"region":"Aquitaine",
"cp":"01100",
"country":"FR",
"email":"[email protected]",
"tel1":"12345",
"tel2":"12345",
"city":"Apremont",
"coorx":"0",
"coory":"0",
"gender":null,
"compliment1":null,
"compliment2":null,
"flag":"0",
"additional_info":null
}
}
-3
A
回答
0
//By using jquery json parser
var obj = $.parseJSON('{"name": "", "skills": "", "jobtitel": "Entwickler", "res_linkedin": "GwebSearch"}');
alert(obj['jobtitel']);
//By using javasript json parser
var t = JSON.parse('{"name": "", "skills": "", "jobtitel": "Entwickler", "res_linkedin": "GwebSearch"}');
alert(t['jobtitel'])
http://www.mkyong.com/javascript/how-to-access-json-object-in-javascript/
0
var JSONObj = { "useraddresses":{ "address_id":"46", "user_id":"89919", "address_title":"test", "address_type":"1", "street_address":"34", "region":"Aquitaine", "cp":"01100", "country":"FR", "email":"[email protected]", "tel1":"12345", "tel2":"12345", "city":"Apremont", "coorx":"0", "coory":"0", "gender":null, "compliment1":null, "compliment2":null, "flag":"0", "additional_info":null } };
alert(JSONObj.useraddresses.city);
您正在使用什么语言
+0
上感谢其工作。 – 2014-09-03 05:00:18
+1
接受答案,如果它值得。 :)看看这个http://www.json.com对JSON的进一步怀疑 – 2014-09-03 05:15:02
相关问题
- 1. 如何从特定的城市获取附近的城市?
- 2. 如何在python中获取城市(geonameid)的附近城市?
- 3. 从json响应中获取城市数组
- 4. 如何从团队城市获取统计数据?
- 5. 从城市获取城市建议,该用户输入android
- 6. 如何获取城市列表?
- 7. 从N个城市列表中选择一个城市/城市的方式
- 8. 如何从java中的shapefile中获取城市名称
- 9. 如何在angularjs中使用openweathermap api获取多个城市的数据?
- 10. 从城市名称获取经纬度
- 11. 从城市获取状态PHP
- 12. 从经纬度获取城市名称
- 13. 从openstreetmap获取城市边界
- 14. 获取变焦城市
- 15. 如何从.txt获取这个城市,并将其添加到使用PHP的数据库?
- 16. 如何根据城市
- 17. 如何从本地数据库使用微调器获取城市的基础
- 18. 如何从JSON中获取数据?
- 19. 如何从JSON中获取数据Extjs
- 20. 如何使用Google Maps V3从lat/lng获取城市?
- 21. 如何从reverseGeocodeCoordinate获取国家,州,城市?
- 22. SQL Server:如何从数据库中选择双城市
- 23. getJSON从这个json数组中获取数据
- 24. 获取正确的数据 - 城市和省份数
- 25. 为什么我的php脚本不能从mysql数据库中获取城市
- 26. 如何从json获取数据,它有多个json数组
- 27. 是否可以在Google地图中获取城市A和城市B之间的城市列表
- 28. JSON世界城市名单
- 29. sparql - 从dbpedia获取某个国家的城市列表
- 30. 如何获取C#中特定城市的日期时间?
?你有什么尝试? – icedwater 2014-09-03 04:43:47
指定语言。 – levi 2014-09-03 04:44:13
打开记事本,粘贴到你的JSON中,按下Ctrl-F,输入'city',然后回车。 – Amadan 2014-09-03 04:44:16