This is stupid but i am missing something and could not reach the conclusion. I am trying to initialize a JSON Array and trying to add JSON Objects to it run time. For an exampl
You'll be wanting something like this:
var data = { employees: [] } // initially empty data.employees.push( { firstName: 'John', lastName: 'Doe' } );