I have a json array stored in variable in format below:
{"info":
[ {"typeid": "877", "recid": "10", "repeaterid": "0", "pageid": "26966", "maxrecords": "1"},
{"typeid": "877", "recid": "11", "repeaterid": "0", "pageid": "26966", "maxrecords": "1"},
{"typeid": "459", "recid": "3", "repeaterid": "0", "pageid": "26966", "maxrecords": "1"},
{"typeid": "459", "recid": "4", "repeaterid": "0", "pageid": "26966", "maxrecords": "1"},
{"typeid": "456", "recid": "5", "repeaterid": "0", "pageid": "26966", "maxrecords": "1"},
{"typeid": "456", "recid": "6", "repeaterid": "0", "pageid": "26966", "maxrecords": "1"}
]}
I want to reverse the inner JSON array for info.Like this
{"info":
[ {"typeid": "456", "recid": "6", "repeaterid": "0", "pageid": "26966", "maxrecords": "1"},
{"typeid": "456", "recid": "5", "repeaterid": "0", "pageid": "26966", "maxrecords": "1"},
{"typeid": "459", "recid": "4", "repeaterid": "0", "pageid": "26966", "maxrecords": "1"},
{"typeid": "459", "recid": "3", "repeaterid": "0", "pageid": "26966", "maxrecords": "1"},
{"typeid": "877", "recid": "11", "repeaterid": "0", "pageid": "26966", "maxrecords": "1"},
{"typeid": "877", "recid": "10", "repeaterid": "0", "pageid": "26966", "maxrecords": "1"}
]}
How can i achieve this.
