{"data": [
{
"id": "X12",
"from": {
"name": "test1", "id": "1458633"
}
},
{
"id": "X45",
"from": {
"name": "test2", "id": "12587521"
}
},
{
"id": "X46",
"from": {
"name": "test3", "id": "12587521"
}
}
I want to swap the array index of the json file using C#. Ex. data[2] swap with data[3] ->
{"data": [
{
"id": "X46",
"from": {
"name": "test3", "id": "12587521"
}
},
{
"id": "X45",
"from": {
"name": "test2", "id": "12587521"
}
}
Are there anyway to do this without creating many temp variables?