我想按判断单元ID分割对象.
我有这个
{
"name": "test",
"description": "test",
"asessment_units[]": ["2", "4", "5","8"]
}
从这个对象中,我想要四个对象(因为我在判断单元中有四个元素).
第一个物体
{
"name": "test",
"description": "test",
"asessment_units[]": ["2"]
}
第二个目标
{
"name": "test",
"description": "test",
"asessment_units[]": ["4"]
}
第三个目标
{
"name": "test",
"description": "test",
"asessment_units[]": ["5"]
}
第四个目标
{
"name": "test",
"description": "test",
"asessment_units[]": ["8"]
}