@ user3749797, I was confused with this exact problem.
@learningloop offers a good solution, since it allows you to perform the task of adding data to your firebase, but it is possible to add a new pair k, v (name, age) to one associative JSON array, rather than clicking on an array of associative arrays. In fact, @learningloop sees:
[{ name: steve, age: 34 }, { name: mary, age: 22 }]
Perhaps his path is better, but you and I were looking for:
{ steve: 34, mary: 22 }
I managed to add k, v pairs to this list with
var fireRef = new Firebase('https://<CHANGE_APP_NAME>.firebaseio.com/fireRef'); fireRef.update({ 'jobe': '33'});
Yielding
{ steve: 34, mary: 22, jobe: 33 }
In my firebase.
Full documentation on saving to firebase [here]
source share