Json format below
{
"HEAD" : {
"BillType" : "S - W,"
"BillNo" : "BSN0001
"},
"ITEM" : [
{
"ItemID" : "IT0002,"
"Qty" : "1500"
},
{
"ItemID" : "IT0003,"
"Qty" : "5300"
}
]
}
Need to convert the datatable below
BillType billNo ItemID Qty
S - W BSN0001 IT0002 1500
S - W BSN0001 IT0003 5300
CodePudding user response:
Read the json serialization into objects, and then to operate this object is ok,
CodePudding user response: