Skip to content

Instantly share code, notes, and snippets.

@bjoshuanoah
Created October 31, 2012 04:59
Show Gist options
  • Save bjoshuanoah/3984882 to your computer and use it in GitHub Desktop.
Save bjoshuanoah/3984882 to your computer and use it in GitHub Desktop.
Iterate through jSon with key, val
var jsondata =[
{
"id":1,
"name":"a",
"place":"b"
},
{
"id":2,
"name":"c",
"place":"d"
},
{
"id":3,
"name":"e",
"place":"f"
}
];
$.each(jsondata, function(key,val) {
$.each(val, function(k,v){
alert(v);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment