Writing To A Json File


#1

How do we write to a json file using fs module! I Use it but it dosent write to the json file!
But when i try on my pc it writes!
Help me please


#2

You write to the file the same way as normal. Since the file is being updated programmatically, the contents of the file can change before it’s updated in the editor. Try running refresh from the console and reviewing the content of the updated json file.


#3

Ik Thnks Lemme Try It Again!
Would Get back After testing!
I asked cause i tried to write to a .json file using fs module but ot wasnt updated!
I would let uk if it works or not!
Thanks :heart: