【发布时间】:2018-09-26 23:57:57
【问题描述】:
我是新来的火花。我曾尝试在struct 内爆炸array。 JSON 循环有点复杂,如下所示。
{
"id": 1,
"firstfield": "abc",
"secondfield": "zxc",
"firststruct": {
"secondstruct": {
"firstarray": [{
"firstarrayfirstfield": "asd",
"firstarraysecondfield": "dasd",
"secondarray": [{
"score": " 7 "
}]
}]
}
}
}
我正在尝试访问secondarray 字段下的score 字段,以便能够计算一些指标并得出每个id 的平均分数。
【问题讨论】: