JSFiddle - React, Tailwind, and code Playground

by Lingjia Liu

JavaScript

/*
$.getJSON( "https://data.melbourne.vic.gov.au/resource/ez6b-syvw.json", function(data) {
    $.each(data, function(key, val){
        document.writeln(val.location + "<br/>");
    }); 
});
*/

d3.json("https://data.melbourne.vic.gov.au/resource/ez6b-syvw.json", function(error, json) {
  if (error) return console.warn(error);
    
  document.writeln(json[0].model);
});

/*
[ {
  "model" : "ENV",
 *"humidity_min" : "64.9",
  "location" : "Docklands Library",
  "light_min" : "3.3",
  "light_max" : "3.3",
  "light_avg" : "3.3",
  "mac" : "0013a20040b31583",
 *"timestamp" : "2015-02-05T12:30:00",
  "temp_max" : "19.0",
  "temp_avg" : "19.0",
  "boardtype" : "1",
  "boardid" : "509",
  "temp_min" : "19.0",
 *"longitude" : "144.9404851",
 *"humidity_avg" : "64.9",
 *"humidity_max" : "64.9",
 *"latitude" : "-37.8199043",
  "rowid" : "509-20150205123000"
}, ...]
*/