解析json的问题,能帮我看看嘛
{
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"id": "330204",
"properties": {
"name": "江东区",
"cp": [121.572991, 29.866542],
"childNum": 1
},
"geometry": {
"type": "Polygon",
"encodeOffsets": [[124534, 30620]]
}
},
{
"type": "Feature",
"id": "330203",
"properties": {
"name": "海曙区",
"cp": [121.539698, 29.874452],
"childNum": 1
},
"geometry": {
"type": "Polygon",
"coordinates": ["@"],
"encodeOffsets": [[124479, 30590]]
}
},
],
"UTF8Encoding": true
}
上面整个 json名叫 jsonobj 我现在想通过js 循环获取到 里面的name 的值。 不会写循环遍历js