Question and answer is powered by AnsPress.io
I want to make a an array in javascript like this.
var result=[{"id":1,"label":"India"},{"id":2,"Sri lanka"}];
I want to make this from this array.
[{"id":1,"country":"India","country_code":"IN"},{"id":2,"country":"Sri lanka","country_code":"LK"}]
How to do this?