fetch(url) .then(res => res.text()) .then(res => parser.toJson(res)) .then(res => console.log(JSON.parse(res).GolfDataFeed.Locatorboard.Player))
response.on('end', function() { handler(JSON.parse(parser.toJson(output))) });
function decode(base) { return new Promise((resolve, reject) => { resolve(Base64.decode(base)); }).then(res => { var json = parser.toJson(res) return json; }).then(result => { return identifyVehicle.getVehicle(result); }).catch(error => { return error }) }
let json = parser.toJson(xml); let ob = JSON.parse(json); if (ob && isObject(ob)) {
fetch(lpgaURL) .then(res => res.text()) .then(res => parser.toJson(res)) .then(res => { return JSON.parse(res).GolfDataFeed.Tournament.Locatorboard.Player })
fetch(url) .then(res => res.text()) .then(res => parser.toJson(res)) .then(res => console.log(JSON.parse(res).GolfDataFeed.Locatorboard.Player))