[英]Access dynamic JSON name
I am able to read JSON data from javascript with json.data.groupID[0].name
. 我可以使用
json.data.groupID[0].name
从javascript读取JSON数据。 The groupID
is dynamic. groupID
是动态的。 I tried to do it with this and it doesn't work: 我试图这样做,它不起作用:
aa = 'groupA';
json.data[aa[0][name]]
How can I get the json data with the dynamic groupID name? 如何获取具有动态groupID名称的json数据?
Thank you. 谢谢。
您接近:
json.data[aa][0][name]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.