如何从json.stringify获取一些数据?

时间:2017-02-23 09:57:33

标签: javascript json node.js

res = JSON.parse(res);
var data = res.body;

res 如下所示 enter image description here

[{"_id":"70:ee:50:13:81:a4",
"place":
{   "location":[113.551302,22.193787],
    "altitude":29,
    "timezone":"Asia/Macau"},
"mark":8,
"measures":
{"02:00:00:13:65:78":
    {"res":
        {"1487682683":[23,76]},
     "type":["temperature","humidity"]},
"70:ee:50:13:81:a4":
    {"res":
        {"1487682691":[1017.1]},
     "type":["pressure"]}},
"modules":["02:00:00:13:65:78"],
"module_types":{"02:00:00:13:65:78":"NAModule1"}}]

问题:如何获得“altitude”,“temperature(23)”,例如?

0 个答案:

没有答案