How to convert:
[
{
"tag":"google",
"count":1
},
{
"tag":"microsoft",
"count":2
}
]
to something like:
{
"google":1,
"microsoft":2
}
in typescript using built in function or any shortcut?