Is it possible to efficiently convert the object shown below?
"site_permissions": {
"70488413-6750-4f0b-8947-061a85c49e20": [
"8e0bc18c-0387-49e2-99ea-a6359b60d54d",
"a014a059-8d43-4337-830c-e2742627cf47",
"4ec12e88-64eb-4b0d-bfc7-7a46f562cf93"
]
}
to
"site_permissions": {
"70488413-6750-4f0b-8947-061a85c49e20": {
"8e0bc18c-0387-49e2-99ea-a6359b60d54d",
"a014a059-8d43-4337-830c-e2742627cf47",
"4ec12e88-64eb-4b0d-bfc7-7a46f562cf93"
}
}
If so, what is the optimal way to achieve this transformation?