有没有人在啊,想请问一下,易语言 JSON取值??
有两段JSON。【第一段】
{"c":"0","m":"","d":{"allScore":47,"homeAnalysisScore":{"movingLineScore":29,"zoneScore":0,"ventilationScore":18},"floorplanInfos":[{"area":100.15,"realArea":80.12,"planImage":"
https://abc123.com/prod/img/L732W7AKN4HQCAABAAAAACQ8panoguide.png@watermark=1&object=bG9nby5wbmc=&p=7&x=10&y=10
","levelIndex":2,"levelName":"三层"},{"area":101.525,"realArea":81.22,"planImage":"https://abc123.com/prod/img/afbc3b56e2bac7b30102a03cff42600d_800x800.jpg@watermark=1&object=bG9nby5wbmc=&p=7&x=10&y=10
","levelIndex":1,"levelName":"二层"},{"area":108.2125,"realArea":86.57,"planImage":"https://abc123.com/prod/img/L73247IKN4EFIAABAAAAABY8panoguide.png@watermark=1&object=bG9nby5wbmc=&p=7&x=10&y=10
","levelIndex":0,"levelName":"一层"}]}}【第二段】
[{"levelName":"一层","levelId":"L73247IKN4EFIAABAAAAABY8","levelIndex":0,"renderPicCounts":0},{"levelName":"二层","levelId":"L732W7AKN4HQCAABAAAAACA8","levelIndex":1,"renderPicCounts":15},{"levelName":"三层","levelId":"L732W7AKN4HQCAABAAAAACQ8","levelIndex":2,"renderPicCounts":0}]
从这两段JSON中我想取出以下格式的数据:
比如:
levelIndex:0;levelName:一层;levelId:L73247IKN4EFIAABAAAAABY8;area:108.2125;realArea:86.57
levelIndex:1;levelName:二层;levelId:L732W7AKN4HQCAABAAAAACA8;area:101.525;realArea:81.22
levelIndex:2;levelName:三层;levelId:L732W7AKN4HQCAABAAAAACQ8;area:100.15;realArea:80.12
【注意:】
层数不是固定的,有的是一层有的是二层有的是五层,这里的三层是举例。