I am currently working on retrieving data from Twitter using codebird in my JavaScript script. The issue I am facing is that codebird's response is in the form of an object rather than JSON. As a result, I am unable to use eval() to convert the JSON text into an array for further processing. Any suggestions on how to access the JSON data directly would be greatly appreciated.
Thank you in advance
var cb = new Codebird();
cb.setConsumerKey("", "");
cb.setToken('','');
cb.__call(
"search_tweets",
"q=Twitter",
function (reply) {
data = eval(reply) //parse the returned JSON to array
}
}
);