I have a JavaScript function for querying data from Parse.com, as shown below.
function fetchData() {
var query = new Parse.Query("english");
query.find({
success: function(results) {
alert(results);
},
error: function(error) {
// Handle any errors here.
}
});
}
Although I can see the length of the query response by using results.length in an alert, I am unable to view the actual content inside the results. The alert displays [object Object],[object Object]...
I'm curious about the format of the response - is it JSON or an array? And how can I access the values within the results?
Any help would be appreciated. Thank you!