title: How to update json file in axios (react.js)
body: <p>I am currently mock data for my react application. So axios is used for mock the data and those mock data is stored in json file. My json file as below. </p>
  
  <pre><code>{
   "invoices": [{
   "storageId": 45678,
   "identifier": "1215",
   "invoiceDate": "2119-05-10",
   "invoiceNo": "11",
   "issuer": "Oliver",
   "totalAmount": 321533,
   "status": "Rejected",
   "dueDate": "1019-01-15",
   "netAmount": 1000,
   "vatAmount": 10,
   "downloadLink":"http://www.africau.edu/images/default/sample.pdf"
   }]
  }
  </code></pre>
  
  <p>once I change the status of invoice it need to be updated in the json file. So i need a way to update or override existing json file with new data. I fount the fs solution and it didn't work for me. </p>