I have a hash that currently looks like this:
{
"prefix1_key1": [a, b],
"prefix1_key2": [c, d],
"prefix2_key1": [e, f],
"prefix3_key1": [g, h]
}
And I would want to transfer this into:
{
"prefix1": [a, b, c, d],
"prefix2": [e, f],
"prefix3": [g, h]
}
Is there any clean way that I can do this?