I Want to split objects by assessment unit ids.
I have this
{
"name": "test",
"description": "test",
"asessment_units[]": ["2", "4", "5","8"]
}
and from this object I want four objects (because I have 4 elements in the assessment unit).
1 st object
{
"name": "test",
"description": "test",
"asessment_units[]": ["2"]
}
2nd object
{
"name": "test",
"description": "test",
"asessment_units[]": ["4"]
}
3rd object
{
"name": "test",
"description": "test",
"asessment_units[]": ["5"]
}
4th object
{
"name": "test",
"description": "test",
"asessment_units[]": ["8"]
}