I can't think of a way to do the thing below
How can I turn this dictionary
[
{
"page": "NEWS",
"position": "SECOND_ITEM"
},
{
"page": "GLOBAL",
"position": "BOTTOM-RIGHT"
},
{
"page": "GLOBAL",
"position": "TOP-RIGHT"
}
]
to this dictionary in python
[
{
"page": "NEWS",
"position": ["SECOND_ITEM"]
},
{
"page": "GLOBAL",
"position": ["BOTTOM-RIGHT", "TOP-RIGHT"]
}
]