json 遍历

json 遍历
  let aa = []
              let bb=
                {aaa: "460-00-593272-46", bbb: "北客站新建1-L-1", ccc: "西安" }
              let cc=
                { aaa: "460-00-593272-46",bbb: "北客站新建1-TL-1", cc: "西安"}
              aa.push(bb)
              aa.push(cc)
              //json转为对象
         let obj = JSON.parse(aa )
          let cellName = ''
          //遍历对象
          for (let idx = 0; idx < obj.length; idx++) {
            if (idx === 0) {
              cellName += obj[idx].bbb
            } else {
              cellName += ' , ' + obj[idx].bbb
            }
          }