has the following data structure.
e test1
b test2
c test2
i test3
d test3
f test3
k test3
h test3
12
< hr >
:
[
{
category: "test1",
arr: ["e"]
},
{
category: "test2",
arr: ["b","c"]
},
{
category: "test3",
arr: ["i","d","k","f","h"]
}
]
[
{
category: "test1"
},
{
category: "test2"
},
{
category: "test3"
}
].