Parsing JSON via getJSON or AJAX

by Akram kamal

JavaScript

$.getJSON('http://api.openweathermap.org/data/2.5/weather', {
    zip: "55101,us",
    appid: "44db6a862fba0b067b1930da0d769e98"
}, function(data) {
    console.log(JSON.stringify(data,4,4));
});