how to make values as keys and push it in json object : I have json like 

     0:{columnName:"gender",seedValues:["M","F"]}
     1:{columnName:"entity_type",seedValues:["O","I"]}

I want json like 

    {
      "gender":["M","F"],
      "entity_type":["O","I"]
     }

In Angular 6 or javascript