SyntaxError: Unexpected number in JSON at position 208
at JSON.parse ()
at initalizeToyTagsJSON (/home/george/LD-ToyPad-Emulator/index.js:140:25)
at Object. (/home/george/LD-ToyPad-Emulator/index.js:27:1)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:877:12)
at internal/main/run_main_module.js:21:11
Any ideas what I can do to solve this? I've had a look in the index.js file for the mentioned ]5" with ctrlF but no luck, but I'm also not knowledgeable on the topic so I'm sure I'm misunderstanding something
Edit 1: Of note, I couldn't find the loader.js file at all, is that unusual?
Edit 2: Fixed the issue but leaving up as others seem to have had similar issues; The problem was at server/json/toytags.json, when making a new toy tag it messed up writing it to this file and made the syntax go bad, I went into the file and removed the bad syntax and it's now running as normal
george@debian:~/LD-ToyPad-Emulator$ node index.js undefined:11 ]5": 4026531839 ^
SyntaxError: Unexpected number in JSON at position 208 at JSON.parse ()
at initalizeToyTagsJSON (/home/george/LD-ToyPad-Emulator/index.js:140:25)
at Object. (/home/george/LD-ToyPad-Emulator/index.js:27:1)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:877:12)
at internal/main/run_main_module.js:21:11
Any ideas what I can do to solve this? I've had a look in the index.js file for the mentioned ]5" with ctrlF but no luck, but I'm also not knowledgeable on the topic so I'm sure I'm misunderstanding something
Edit 1: Of note, I couldn't find the loader.js file at all, is that unusual?
Edit 2: Fixed the issue but leaving up as others seem to have had similar issues; The problem was at server/json/toytags.json, when making a new toy tag it messed up writing it to this file and made the syntax go bad, I went into the file and removed the bad syntax and it's now running as normal