The file performs.json
contains an JSON array with objects of user info.
I want to programmatically update this array and save again. But I don't know how.
$http.get('db/performs.json')
.then(function (res) {
res.data.push(newSubmit);
// Save this new res.data to db/performs.json
});