JQUERY LOOP via JSON
var someObj = { foo: "bar"};
$.each(someObj, function(propName, propVal) {
console.log(propName, propVal);
});
ssbrar
var someObj = { foo: "bar"};
$.each(someObj, function(propName, propVal) {
console.log(propName, propVal);
});
$.map(mapArray, function(val, key) {
alert("Value is :" + val);
alert("key is :" + key);
});
var person={
first_name:"johnny",
last_name: "johnson",
phone:"703-3424-1111"
};
for (var property in person) {
console.log(property,":",person[property]);
}
//https://code.jquery.com/jquery-3.5.0.js
var scores = '{ "first": { "score": 660 }, "second": { "score": 330 } }';
var objkeys = $.parseJSON(scores);
$.each(objkeys, function(key, value) {
$.each(value, function(key, value){
console.log(value);
});
});