I have a data, he is such an array
a = [{general error: 0}, {general error: 0}, {accident symptom: 1}]
how can I convert this a data into
a = [
{name: general error below, Value: 0},
{name: general error, Value: 0},
{name: accident symptom, Value: 1}]
this format