Is it possible to fetch a Json string from a couch server using code such as
$.couch.db(getDir).openDoc(getDoc, {
success: function(data) {
console.log(data);
var myJson = data.toString();
alert(myJson);
},
error: function(status) {
console.log(status);
}
});
Whenever I attempt to do this, myJson is always undefined