我在将 JSON 字符串的值生成到下拉菜单中时遇到问题。我有一个 JSON API
http://service.proventustechnologies.com/api/json?username=demo&token=4ce26206-025d-11dc-8314-0800200c9a66&method=getattributevalues&dimensionId=10
当您单击它时,您将看到许多这样的值。
{
"response": {
"id": 10,
"values": [
{
"id": 258,
"value": "Cameras"
},
{
"id": 2581,
"value": "GPS Navigation"
},
{
"id": 259,
"value": "MP3 Players"
},
{
"id": 260,
"value": "Cell Phone/PDA"
},
{
"id": 6377,
"value": "Digital Photo Frame"
},
{
"id": 110,
"value": "Motherboard"
},
{
"id": 108,
"value": "Desktop/Server"
},
{
"id": 109,
"value": "Notebook"
},
{
"id": 10738,
"value": "E-Book Reader"
}
],
"name": "System Type"
},
"status": "ok"
}
我想在下拉菜单中打印所有值,例如相机、GPS 导航。感谢您提供任何帮助。