I am currently working with a Blockspring API that pulls data from a Google Sheet in the form of a JSON array. However, I am encountering an issue where I receive an "undefined" value when trying to access an object within the array. I have included both the code snippet and the console log output for reference. Any insights on why this might be happening would be greatly appreciated.
blockspring.runParsed("query-public-google-spreadsheet", { "query": "SELECT A, B, C", "url":
"https://docs.google.com/spreadsheets/d/1ZYvcYf_41aghdXRSpg25TKW4Qj9p1Lpz92b1xG-9R1Q/edit?usp=sharing"},
{ "api_key": "br_50064_1fe91fe1478ef990dc8b5e9b4041c2c476670306" }, function(res){
var obj=res.params;
console.log(obj);
var temp=obj[0];
console.log(temp);
}