I have this database structure that I made with JSON
{
"jobs" : [ null, {
"id" : "1",
"publisher" : "Test"
}, {
"id" : "2",
"publisher" : "Test"
} ]
}
but I don’t have the code to insert another entry there
I was using this code but it doesn’t do what I need exactly
var newJob = fdb.list('/jobs/' + this.jobID).push();
newJob.set({
'id' : this.jobID,
'publisher' : 'Test'
})
I need a .push() and .set() code to go properly with my existing structure