I receive this as a response from an ajax call. My question is how can I get the values of the object?
{"countries":[{"country_id":730,"country":"El Salvador"},{"country_id":756,"country":"Guatemala"},{"country_id":767,"country":"Indonesia"}]}
my ajax call is this:
$.ajax({
type: "POST",
dataType:"json",
url:getCountriesPackages,
data: "transferUrl=countries?service_id="+serviceId,
success: function(data) {
$.each(data, function(k, v) {
console.log(k);
});
}
});
thank you