title: Save arrays to JSON file and then use Array.push() to save data in it
body: <p>I am creating a calendar program, and my aim is to save events and so on in a JSON file.
  What I think is the best way to do so is by storing arrays inside arrays in the JSON file (this way I can iterate through each array and load them when the program starts). </p>
  
  <p>First and foremost: how do I push an array into an array in JSON? Any suggestions? Say for example I have variable <code>var event</code> that is equal to an array <code>{"id": elementTitle, "year": year, "month": month, "day": day};</code> that is going to be <code>JSON.stringify(event)</code>'ed. So how do I save this to an array already created in a JSON file?: <code>events = {   }</code>.</p>
  
  <p>By the way, this program is created with the electron api, also using node.js.</p>