Getjson's Data : Clarification Needed
Given JSON containing: [ {'myKey':'A','status':0,'score':1.5},{'myKey':'C','status':1,'score':2}, {'myKey':'D','status':0,'score':0.2},{'myKey':'E','status':1,'score':16}, {'myKey'
Solution 1:
getJSON
works asynchronously and what it returns is AJAX request object. So use success callback function of getJSON
to recieve the data
$.getJSON('http://d.codio.com/hugolpz/getJson--/App/data/statusStarter2.json', function(data) {
// do JSON.stringify(data) here
});
Post a Comment for "Getjson's Data : Clarification Needed"