as long as the b1 attribute has the same value, throw the same later into the children array
let obj = [{"a1": "bbb", "b1": "jkk"}, {"a1": "ccc", "b1": "jkp"}, {"a1": "ddd", "b1": "jkk"}, {"a1": "eee", "b1": "jkk"},...];
//
[{
"a1": "bbb",
"b1": "jkk",
children: [{
"a1": "ddd",
"b1": "jkk"
},{
"a1": "eee",
"b1": "jkk"
}],
}, {
"a1": "ccc",
"b1": "jkp"
}];