在 JSON 中,我有不同的 sucursales(位置),每个位置都有不同的汽车(汽车)。如何通过一项功能获取所有地点的汽车总数?
[{"sucursal": "Quilmes",
"direccion": "Av. Hipólito Yrigoyen 80, B1878 Quilmes, Provincia de Buenos Aires",
"telefono": "(0230) 466-3000",
"autos": [{
"marca": "chevrolet",
"modelo": "camaro",
"anio": 20120,
"color": "black"
},
{
"marca": "nissan",
"modelo": "note",
"anio": 2020,
"color": "white"
},
{
"marca": "chevrolet",
"modelo": "onix",
"anio": 2019,
"color": "red"
},
{
"marca": "volkswagen",
"modelo": "scirocco",
"anio": 2015,
"color": "white"
},
{
"marca": "volkswagen",
"modelo": "golf",
"anio": 2016,
"color": "white"
},
{
"marca": "nissan",
"modelo": "sentra",
"anio": 2017,
"color": "black"
},
{
"marca": "citroen",
"modelo": "c4",
"anio": 2020,
"color": "gray"
},
{
"marca": "citroen",
"modelo": "berlingo",
"anio": 2020,
"color": "gray"
},
{
"marca": "peugeot",
"modelo": "208",
"anio": 2020,
"color": "gray"
},
{
"marca": "fiat",
"modelo": "fiorino",
"anio": 2020,
"color": "gray"
},
{
"marca": "toyota",
"modelo": "etios",
"anio": 2020,
"color": "gray"
},
{
"marca": "ford",
"modelo": "ecosport",
"anio": 2015,
"color": "red"
},
慕尼黑5688855
相关分类