my_fields = [{"field_name":"field0", "value": "10"}, {"field_name":"field1", "value": "20"}]
[
{"field0": "10"},
{"field1": "20"}
]
var result = my_fields.map(function(item){
return {
item["field_name"]: item['value'],
};
});