I am new to JSON and Here is my First JSON Object
var First = {
"a" : [{}]
};
I want to add the below object to "a" in "First"
var a = {"1":"One","2":"Two"};
I have tried below code
First.a[First.a.length-1] = a;
It is not working.I assume that there are some syntax mistakes in this. Please help me on this.
jqueryandjson, as neither is at all relevant to this question, and addedjavascript.