Lot of questions are available for array push and splice but not like this one.
Please see this fiddle for what i try JS Fiddle
I have the output like this
[{"rup":"100","dol":"50"},{"rup":"100","dol":"50"},{"expense":
[{"reason":0,"cost":0,"receipt":0,"expense_type":0}]},{"expense":
[{"reason":1,"cost":1,"receipt":1,"expense_type":1}]}]
but what i need is
[{"rup":"100","dol":"50",{"expense":[{"reason":0,"cost":0,"receipt":0,"expense_type":0}},
{"rup":"100","dol":"50",{"expense":[{"reason":1,"cost":1,"receipt":1,"expense_type":1}}]
I tried SPLICE() and ARRAY.INSERT() methods but not get like above.
Please suggest any ideas.