var apiData = "http://dummy.restapiexample.com/api/v1/employees"; $.getJSON(apiData, function (data) { $.each(data, function (key, jsonObject) { console.log(jsonObject.id, jsonObject.employee_name) // if (jsonObject.key == "INFO") { // } }) });