I have a function that should read a JSON file and update this file (writeFile). When I call this function 2 times or more it doesn't update my file and after the 1st call it's adding 1/2 curling brackets at the end of my JSON file. Here is my function:I have a function that should read a JSON file