title: Update local JSON file using AngularJS
body: <p>The file <code>performs.json</code> contains an JSON array with objects of user info.</p>
  <p>I want to programmatically update this array and save again. But I don't know how.</p>
  <pre><code>$http.get('db/performs.json')
      .then(function (res) {
          res.data.push(newSubmit);
          // Save this new res.data to db/performs.json
      });
  </code></pre>