Skip to content

Instantly share code, notes, and snippets.

@indefinit
Created February 10, 2013 17:49
Show Gist options
  • Save indefinit/4750403 to your computer and use it in GitHub Desktop.
Save indefinit/4750403 to your computer and use it in GitHub Desktop.
JS: parseJsonResponse callback function
// A callback function for parsing json
function parseJsonResponse(json) {
for(var obj in json ) {
if (json.hasOwnProperty(obj)) {
var data = json[obj];
//have fun with your data object here.
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment