Make it very simple:
var tempArr = [{"test":"sa3"},{"test":"4s"},{"acf":"1s"},{"test":"6s"}]; var tempObj; for(var i=0;i<tempArr.length;i++){ tempObj = tempArr[i]; for(key in tempObj){ alert("key : "+key +"value : "+tempObj[key]); } }
This way you can get any number of keys and values ββin any json array. Now customize this code according to your requirement, for example, increase and decrease the quantity or everything that you want to do.
Hope you have an approach !!!
source share