I need to parse the following JSON, i have been able to parse each object into a JSon Array, but i am having trouble parsing the TransactionItems into an array. TransactionItem are Sales Lines i need to loop through the TransactionItem and create a sales line for each object in there.
[
{
"Id": 314324236316890,
"CustomerId": null,
"StaffId": 10922343821,
"TransactionItems": [
{
"Id": 1051958756,
"TransactionId": 316334316890,
"ProductId": 1673432427092,
"UnitPrice": 1.2500000000000000,
"UnitPriceExcTax": 1.25000343400000000000,
"CostPrice": 34334
},
{
"Id": 1051958757,
"TransactionId": 343434340,
"ProductId": 167343427096,
"UnitPrice": 1.3503340000000000000,
"UnitPriceExcTax": 1.3500343000000000000,
"CostPrice": 0.0000000034300000000,
}
]
},
{
"Id": 314324236316890,
"CustomerId": null,
"StaffId": 10922343821,
"TransactionItems": [
{
"Id": 1051958756,
"TransactionId": 316334316890,
"ProductId": 1673432427092,
"UnitPrice": 1.2500000000000000,
"UnitPriceExcTax": 1.25000343400000000000,
"CostPrice": 34334
},
{
"Id": 1051958757,
"TransactionId": 343434340,
"ProductId": 167343427096,
"UnitPrice": 1.3503340000000000000,
"UnitPriceExcTax": 1.3500343000000000000,
"CostPrice": 0.0000000034300000000,
}
]
},
]
Any Ideas how i can do this?