I have the following json
{ "EmployeeLists": [
{
"ID": 1,
"NAME": "Anand",
"Salary": 90000
},
{
"ID": 2,
"NAME": "Anbu",
"Salary": 80000
},
{
"ID": 3,
"NAME": "Bala",
"Salary": 85000
} ]}
I want to move the array item 2 to up or down. the expected output is like below.
{ "EmployeeLists": [
{
"ID": 2,
"NAME": "Anbu",
"Salary": 80000
},
{
"ID": 1,
"NAME": "Anand",
"Salary": 90000
},
{
"ID": 3,
"NAME": "Bala",
"Salary": 85000
} ]}