title: How do I push an object to a JSON file with javascript?
body: <p>So, I have my JSON file:</p>
  <pre><code>{
     HomeWork: []
  }
  </code></pre>
  <p>And I want to push an object:
  <code>{Title: T, Due: D, Description: Desc}</code> To the JSON file, How should I do that? I am using this right now:</p>
  <pre><code>async function AddWork(obj) {
  workData.HomeWork.push(obj);
  //RNFS.writeFile('../../json/work.js', JSON.stringify(workData));
  }
  </code></pre>
  <p>I tried whit the RNFS line, but it did not help.</p>