diff --git a/twitch/chatguessr.js b/twitch/chatguessr.js index e62b1f2..e100eb3 100644 --- a/twitch/chatguessr.js +++ b/twitch/chatguessr.js @@ -9,7 +9,7 @@ var request = HttpRequest.getData(HttpRequest.RequestType.GET,'https://www.geoguessr.com/api/v3/games/'+id,json.toString(),header); if (request.success) { var data = new JSONObject(request.content) - return data; + return JSON.parse(data); } }; function getCountryBDC(location) {