So I've got live JSON data, but I have no idea how to pull it. It looks like this.
{"PlayTime": "98H 02M Play Time","MatchesPlayed": "173 Matches","KADRatio": "1.25","DamagePerRound": "132.7","KDRatio": "0.91","Headshots": "13","WinRate": "48.0%","TotalWins": "83","TotalKills": "2,256","TotalHeadshots": "1,187","TotalDeaths": "2,473","TotalAssists": "827","ScorePerRound": "196.5","KillsPerRound": "0.6","Clutches": "253","Flawless": "175","MostKillsPerMatch": "25","AccuracyHead": "16.6%","AccuracyBody": "77.2%","AccuracyLegs": "6.2%","AccuracyHeadHits": "253","AccuracyBodyHits": "1178","AccuracyLegsHits": "94","TopWeapon1": "Vandal","TopWeapon2": "Ares","TopWeapon3": "Frenzy","TopWeapon1Kills": "1,172","TopWeapon2Kills": "413","TopWeapon3Kills": "167","TopAgent1": "Killjoy","TopAgent2": "Raze","TopAgent3": "Skye"}
I just want to pull one at a time...pepehands
I've tried
$(eval a=$(urlfetch json LINK);Response here with stats ${a.PlayTime})
$(eval ($(urlfetch json LINK)).PlayTime)
$(eval try{a=$(urlfetch json LINK);b=a.PlayTime[0];(b.PlayTime+ | +b.example).replace(/[\[\]]/g,`).replace(/[\n\r]/g, ).slice(0,400);}catch(e){No search result found!`;})
$(eval r=decodeURIComponent("$(querystring $(urlfetch json LINK))");try{JSON.parse(r).PlayTime}catch(e){Failed to parse API response: ${e.message}: ${r}.slice(0,400)})
Nothing has worked :( I just want to say like "Total Playtime [playtime from data]" etc