How can I access and modify JSON files?


#1

I have a discord bot that stores non-sensitive information (emojis) and everytime a user types something it should react with the emoji specified. Question is how would I do that? Do I just edit it like any other file or should I make an HTTP request?


#2

Well, you can just save that as a file using the express fs module and the javascript JSON module.


#3

I ended up using jsonfile, which can be installed from npm. Thanks for the suggestion anyway