I have a JSON structure where I want to change the order in the Array.
{"data": [
{
"ERP": 0080001,
"Issuedate": 20181102,
"Shippingpoint": 503,
"Shiptoparty": 0088000,
"products": [
{
"QTY": 0.000,
"SKUno": 000000000011000077,
"Unit": "L"
},
{
"QTY": 0.000,
"SKUno": 000000000011000078,
"Unit": "L"
}
]
}
]}
I want SKUno first in array then QTY and then Unit.
"SKUno": 000000000011000078,
"QTY": 0.000,
"Unit": "L"
How to rearrange this using Java?