I am trying to work with a pretty simple data structure but just cant get it right.
I have an array which looks like that :
[{"object":"name","context":"..."},{"object":"name","context":"..."}]
Assume this structure is kept in a variable names object_list
All I want is to add an additional field in the base structure so my object will looks like :
[{"object":"name","context":"..."},{"object":"name","context":"..."}],
additional_data : "data"
in context of code I would like to be able to :
var item = object_list[0];
var additional_data = object_list.additional_data;
cant find a way to add to my array that extra field.