I am having problems in looping the key/value of JSON by jQuery .each() function
Initially I have a JSON like this:
json = {\"aaa\":[ {
Since you have an object, not a jQuery wrapper, you need to use a different variant of $.each()
$.each(json, function (key, data) { console.log(key) $.each(data, function (index, data) { console.log('index', data) }) })
Demo: Fiddle