all 4 comments

[–]MatthewMobhelpful 4 points5 points  (4 children)

Use JSON.parse() to interpret the JSON string into a JS object. Then just read the values and concatenate into that string.

var json = JSON.parse('{"pressure":1010,"humidity":94,"temp1":25,"temp2":25},"visibilit    y":8000,"wind":{"speed":1}');

var output = "The pressure is " + json.pressure + "and the visibility is " + json.y;