request({ url: url, json: true }, function (error, response, body) { body = JSON.parse(JSON.stringify(body)); if(body.error === undefined) return callback(false,body); else return callback(true,body); });