I am given some JSON I need to iterate over the elements for output. The problem is that this section is structured differently. Usually I just scrolled through the following elements:
var json = $.parseJSON(data); json[16].events.burstevents[i]
But I can not do this with JSON below, because these are key value pairs. How can I extract only unix timestamp from JSON below? (i.e. 1369353600000.0, 1371600000000.0, etc.).
{"16": { "events": { "burstevents": { "1369353600000.0": "maj", "1371600000000.0": "maj", "1373414400000.0": "maj", "1373500800000.0": "maj", "1373673600000.0": "maj" }, "sentevents": { "1370736000000.0": "pos", "1370822400000.0": "pos", "1370908800000.0": "pos" } } } }
source share