我有一个 json 文件,其中包含一些对象,如下所示:
{
"everfi_commons":{
"info" : {
"projTotal" : "everfi_Commons",
"company" : "Everfi",
"name" : "Commons",
"type" : "ipad",
"description" : "this product, bla bla bla bla bla",
"folder": "everfi_commons",
"thumbProjName": "COMMONS",
"thumbDescription" : "bla bla bla bla bla"
},
"images" : {
"image_1" : "image one url",
"image_2" : "image two url",
"image_3" : "image three url",
"image_4" : "image four url"
}
},
"project_two":{
"info" : {
"projTotal" : "project_two",
"company" : "Everfi",
"name" : "Commons",
"type" : "html5",
"description" : "this product, bla bla bla bla bla",
"folder": "project_two",
"thumbProjName": "COMPANY 2",
"thumbDescription" : "bla bla bla bla bla"
},
"images" : {
"image_1" : "image one url",
"image_2" : "image two url",
"image_3" : "image three url",
"image_4" : "image four url",
"image_5" : "image five url"
}
}
}
我知道如何访问对象的非常特定的部分,但我想知道的是,是否有办法进入 everfi_commons.images 然后获取所有图像 url,无论列出多少,并将它们放入分区?
感谢我能得到的任何帮助!