json - Javascript query response from Parse.com -
i doing query parse.com through javascript function below.
function dofunction () { var query = new parse.query("english"); query.find({ success: function(results) { alert (results) }, error: function(error) { // error instance of parse.error. } }); }
while can see length of query response alerting results.length, cant inside results. alert(results) shows [object object],[object object]...
what response format, json or array? how can values?
thanks
use console.log
in code:
function dofunction () { var query = new parse.query("english"); query.find({ success: function(results) { console.log(results); }, error: function(error) { // error instance of parse.error. } }); }
and see in developer tools(f12) -> console, being returned response.
Comments
Post a Comment