How can I use jQuery to construct this data structure given user input into a form which I haven't provided the code for?
var voucherData = { VocNo: 'V123', PostedDt: '18-03-2016', TType: 'Petty Cash Voucher', RowsCount: '2', rows: [ { Account : 'Acc1', Dr : '5000', Cr : '0', Remarks : 'abc' }, { Account : 'Acc2', Dr : '0', Cr : '5000', Remarks : 'xyz' }, ] };
