The following JSON shows the PurchaseOrder target output after you run the mapping:
{
"OrderNumber": "1",
"Comment": "AppD for POD4",
"OrderDate": "2018-10-01 00:00:00.0",
"ConfirmDate": "2018-10-02 00:00:00.0",
"address_struct": {
"Name": "Tom",
"Street": "2100 Seaport blvd",
"City": "Redwood City",
"State": "CA",
"Country": "USA",
"Zip": "94063"
},
"Items_arr": [{
"itemNum": "1",
"ProductName": "AppD Agent for JVM",
"Quantity": 60,
"price": 500,
"comment": "JVM agents",
"shipDate": "2018-10-15 00:00:00.0",
"PartNum": "1"
}, {
"itemNum": "2",
"ProductName": "MySQL agents",
"Quantity": 6,
"price": 360,
"comment": "MySQL agents",
"shipDate": "2018-10-15 00:00:00.0",
"PartNum": "2"
}, {
"itemNum": "3",
"ProductName": "ELB agents",
"Quantity": 10,
"price": 200,
"comment": "ELB agents",
"shipDate": "2018-10-16 00:00:00.0",
"PartNum": "3"
}],
"TotalPrice": 34160
} {
"OrderNumber": "2",
"Comment": "GoJS for IICS",
"OrderDate": "2018-10-12 00:00:00.0",
"ConfirmDate": "2018-10-12 00:00:00.0",
"address_struct": {
"Name": "Bill",
"Street": "23rd Ave",
"City": "San Mateo",
"State": "CA",
"Country": "USA",
"Zip": "94401"
},
"Items_arr": [{
"itemNum": "1",
"ProductName": "GOJS OEM Edition",
"Quantity": 2,
"price": 20000,
"comment": "GOJS Dev",
"shipDate": "2018-10-19 00:00:00.0",
"PartNum": "101"
}, {
"itemNum": "2",
"ProductName": "GOJS Prefessional Service",
"Quantity": 5,
"price": 5000,
"comment": "GOJS Dev",
"shipDate": "2018-10-19 00:00:00.0",
"PartNum": "102"
}],
"TotalPrice": 65000
}