In AWS, I am issuing a get request through Lambda with the https module. I am able to return the data, but it is in the buffer format when I call callback(null, obj)
I figured it out. With tomfa's code found here: BinArraytoJson I simply did:
var binArrayToJson = function(binArray) {
var str = "";
for (var i = 0; i < binArray.length; i++) {
str += String.fromCharCode(parseInt(binArray[i]));
}
return JSON.parse(str)
}
Then:
JSON.parse(binArrayToJson(yourBinArray));