I am trying to parse data using JSON.parse
. I am getting below data after parsing.
How can I iterate through below parsed data? The parsed data contains array of an array.
{
"AcLedger" : [
{
"BillRef" : "B4944",
"ClientBalance" : 100,
"ClientCr" : 40,
"ClientDr" : 140,
"ContraCode" : "C100",
"DepositBalance" : 30,
"DepositCr" : 20,
"DepositDr" : 50,
"DisbursementGroup" : "DG",
"Narrative" : "Test Narrative1",
"OfficeBalance" : 90,
"OfficeCr" : 10,
"OfficeDr" : 100,
"OutstandingValue" : 200,
"PostDate" : "/Date(1398149097737)/",
"PostType" : "MA",
"Reconciled" : false,
"Reference" : "Ref001",
"TransactionNumber" : 100,
"Undone" : false,
"VatCode" : "VAT100",
"VatValue" : 103
},
{
"BillRef" : "B4944",
"ClientBalance" : 100,
"ClientCr" : 40,
"ClientDr" : 140,
"ContraCode" : "C100",
"DepositBalance" : 30,
"DepositCr" : 20,
"DepositDr" : 50,
"DisbursementGroup" : "DG",
"Narrative" : "Test Narrative 2",
"OfficeBalance" : 90,
"OfficeCr" : 10,
"OfficeDr" : 100,
"OutstandingValue" : 200,
"PostDate" : "/Date(1398149097737)/",
"PostType" : "MA",
"Reconciled" : false,
"Reference" : "Ref002",
"TransactionNumber" : 789,
"Undone" : false,
"VatCode" : "VAT100",
"VatValue" : 103
}
],
"Client" : 100,
"Deposit" : 0,
"Office" : 0,
"Transferable" : 0,
"UnAllocatedCredit" : 0,
"UnBilledAntiDisbursement" : 0,
"UnBilledDisbursement" : 0,
"UnPaidAntiDisbursement" : 0,
"UnPaidBills" : 0
}
Would somebody help me to achieve this?