I have a JSON in which keys are in following order:
var JSON= {"code" :1, "country": "US", "node": 1, "region": "abc, "time": 34};
Now this JSON is passed to a Handlebars template which parses it and puts these values in a table in the same order as the keys.
I want to shuffle the order of the keys so that instead of the order that is there in JSON, the keys can get accessed in this order:
node, time, region, code, country
Is there anyway in Javascript that we can alter the order of the keys?