Created
February 10, 2013 17:49
-
-
Save indefinit/4750403 to your computer and use it in GitHub Desktop.
JS: parseJsonResponse callback function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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