2
列和子列對於每個集合都是不同的。autoit讀取/解析Json
我需要讀取列[24]然後讀取子柱[11]而不是[6或任何其他號],並獲得「價值:1.66」
我不能得到的AutoIt讀它正確。我建立了一大堆根本不工作的測試,只是發佈 這看看是否有一個我只是沒有看到的功能。 我在看我的JSON文件的 和http://www.autoitscript.com/forum/topic/104150-json-udf-library-fully-rfc4627-compliant/ 例
"24": {
"alt_defindex": {
"0": 210
},
"11": {
"0": {
"value": 1.66,
"last_change": -0.17,
"last_update": 1390231504
}
},
"6": {
"0": {
"value": 1,
"last_change": -0.17,
"last_update": 1382770803
}
}
},
"30": {
"alt_defindex": {
"0": 212
},
"11": {
"0": {
"value": 22.75,
"last_change": 1.75,
"last_update": 1389765935
}
},
"6": {
"0": {
"value": 0.94,
"last_change": 0.28,
"last_update": 1367126509
}
}
},
"35": {
"11": {
"0": {
"value": 346.5,
"last_change": 59.5,
"last_update": 1390149299
}
},
"3": {
"0": {
"value": 0.33,
"last_change": -0.11,
"last_update": 1379423777
}
},
"6": {
"0": {
"value": 0.05,
"last_change": 0,
"last_update": 1336410088
}
},
"600": {
"0": {
"value": 0.05,
"last_change": 0.03,
"last_update": 1362791812
}
}
},
"36": {
"11": {
"0": {
"value": 2.33,
"last_change": 0.17,
"last_update": 1386034870
}
},
"14": {
"0": {
"value": 73.5,
"last_change": 73.5,
"last_update": 1389414784
}
},
"3": {
"0": {
"value": 0.22,
"last_change": -0.06,
"last_update": 1376609090
}
},
"6": {
"0": {
"value": 0.05,
"last_change": 0,
"last_update": 1336410089
}
},
"600": {
"0": {
"value": 0.04,
"last_change": -0.01,
"last_update": 1381960202
}
}
},
JSON中沒有列。有屬性和值。 「24」是屬性。它的值是包含其他屬性的對象,例如「11」。 –