Monday 22 April 2019

Node program can't parse JSON file

https://hastebin.com/eyivopoqer.js - This is the program I'm testing currently.This errors out with: TypeError: Cannot read property 'romfilepath' of undefinedHere is the json file I'm trying to parse:{ "botsettings":{ "token": "tokenhere", "adminroleid": "", "botchannelid": "idhere" }, "emulatorsettings":{ "romfilepath": "./mario.gba", "savefilepath": "./gba.sav" }, "miscsettings":{ "buttonrepeatlimit": 10, "newscrnshtlimit": 10, "scrnshtdelay": 1.5, "helpmsg": "string" } }

Submitted April 22, 2019 at 10:03PM by EuphoricPenguin22

No comments:

Post a Comment