need to convert data one format to another from mongodb query
I need to convert below data
{ "data" : [ { "2020