I have a specific type of object, and I am looking to extract the values from this object into a separate array. The keys in this new array will be based on the values of the original object's keys after the underscore.
Here is the current input:
{"1_1":[1,2],"2_1":[2,1,3],"3_2":[4,5],"4_2":[6,7]}
The expected output should look like this:
[
1: [1, 2, 3],
2: [4, 5, 6, 7]
]