|
10精币
{"btc":{"ticker":{"high":28977,"low":28600,"last":28600,"vol":364.30053,"buy":28600,"sell":28601}},"ltc":{"ticker":{"high":345.98,"low":340.1,"last":340.12,"vol":4882.237686,"buy":340.12,"sell":341.99}},"xpm":{"ticker":{"high":0.99,"low":0.93,"last":0.97,"vol":108386.752602,"buy":0.96,"sell":0.97}},"bec":{"ticker":""},"xrp":{"ticker":{"high":1.6084,"low":1.4904,"last":1.5108,"vol":1951106.578288,"buy":1.5102,"sell":1.513}},"xlm":{"ticker":{"high":0.1588,"low":0.1045,"last":0.137,"vol":63630797.081993,"buy":0.1364,"sell":0.1387}},"bts":{"ticker":{"high":0.4152,"low":0.3936,"last":0.401,"vol":9845367.876731,"buy":0.401,"sell":0.403}},"zcc":{"ticker":{"high":0.122,"low":0.109,"last":0.11,"vol":16071085.653165,"buy":0.109,"sell":0.11}},"mec":{"ticker":""},"ppc":{"ticker":""},"src":{"ticker":""},"tag":{"ticker":""},"dgc":{"ticker":""},"doge":{"ticker":{"high":0.00719,"low":0.00665,"last":0.00681,"vol":370565454.57649,"buy":0.00681,"sell":0.00683}},"ybc":{"ticker":""},"ric":{"ticker":""},"bost":{"ticker":""},"dash":{"ticker":{"high":2080,"low":2010,"last":2021.7,"vol":265.971389,"buy":2021.7,"sell":2038.9}},"nxt":{"ticker":{"high":0.529,"low":0.436,"last":0.497,"vol":11470847.577804,"buy":0.497,"sell":0.504}},"blk":{"ticker":{"high":1.27,"low":1.176,"last":1.18,"vol":192227.50145,"buy":1.18,"sell":1.189}},"vash":{"ticker":{"high":0.052,"low":0.045,"last":0.046,"vol":90758327.779446,"buy":0.046,"sell":0.047}},"eac":{"ticker":""},"xem":{"ticker":{"high":1.4302,"low":1.327,"last":1.388,"vol":410171.002972,"buy":1.3626,"sell":1.388}},"emc":{"ticker":{"high":4.01,"low":3.82,"last":3.95,"vol":25316.812904,"buy":3.95,"sell":4}},"hlb":{"ticker":""},"ncs":{"ticker":{"high":0.0518,"low":0.045,"last":0.0465,"vol":12206264.54452,"buy":0.0447,"sell":0.0465}},"xzc":{"ticker":{"high":78.54,"low":71.32,"last":71.56,"vol":7293.752918,"buy":71.56,"sell":72.97}},"mgc":{"ticker":{"high":0.128,"low":0.11,"last":0.112,"vol":4330374.574,"buy":0.112,"sell":0.114}},"xcn":{"ticker":""},"ardr":{"ticker":{"high":1.119,"low":1.0456,"last":1.078,"vol":1047065.910163,"buy":1.0675,"sell":1.078}},"qrk":{"ticker":""},"wdc":{"ticker":""},"sys":{"ticker":{"high":1.0288,"low":0.9207,"last":1.018,"vol":292119.98173,"buy":1.018,"sell":1.0222}},"anc":{"ticker":""},"med":{"ticker":""},"eth":{"ticker":{"high":2100,"low":1981.1,"last":2020.5,"vol":9353.113879,"buy":2018,"sell":2019.9}},"etc":{"ticker":{"high":82.85,"low":80.5,"last":80.52,"vol":9743.132735,"buy":80.52,"sell":81.19}},"ics":{"ticker":""},"tmc":{"ticker":{"high":4.15,"low":3.93,"last":3.968,"vol":139897.906342,"buy":3.968,"sell":4.023}},"bcc":{"ticker":{"high":2548,"low":2378.3,"last":2420,"vol":904.801298,"buy":2395.1,"sell":2419}},"inf":{"ticker":{"high":0.053,"low":0.048,"last":0.048,"vol":65486690.54587,"buy":0.048,"sell":0.049}}}以上是原JSON文本,想取出每个对象的"HIGH" "LOW" "LAST" "VOL" "BUY" "SELL" 的属性值,求大神帮帮忙 |
最佳答案
查看完整内容
[e=4].版本 2
.支持库 spec
.子程序 _按钮1_被单击
.局部变量 json, 类_json
.局部变量 数组, 文本型, , "0"
.局部变量 a, 整数型
json.解析 (#常量1)
json.取所有属性名 (数组, )
.计次循环首 (取数组成员数 (数组), a)
调试输出 (json.取通用属性 (数组 [a] + “.ticker.high”))
调试输出 (json.取通用属性 (数组 [a] + “.ticker.low”))
调试输出 (json.取通用属性 (数组 [a] + “.ticker.last”))
调试 ...
|