这是我的 json ... 使用 javascript .. 在这种情况下,我只想输出根的名称服务然后遍历数组中的各个元素
{
services: {
46: {
servicetypeid: "27",
serviceid: "51",
servicename: "Parking",
description: "Parking Related Payments",
optioncode: [],
inputid: [],
price: [],
categoryidentifier: []
},
47: {
servicetypeid: "27",
serviceid: "52",
servicename: "Markets",
description: "Markets Related Payments",
optioncode: [],
inputid: [],
price: [],
categoryidentifier: []
},
48: {
servicetypeid: "27",
serviceid: "53",
servicename: "PSV",
description: "Public Service Vehicles",
optioncode: [],
inputid: [],
price: [],
categoryidentifier: []
}
}
}