Writing To A Json File

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

1 Like

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.

1 Like

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: