I have the following jSON data.
{
"cluster-1": [
"item1",
"item2"
],
"cluster-2": [
"item3",
"item4"
],
"cluster-3": [
"item1",
"item2"
]
}
the cluster-# can be any number. (it can range from 1-50) "item#" are just strings.
I would like to separate out the data in the below format, once that is done, I would like to display in few div boxes (I don't want this, but will be helpful if you provide inputs)
I would like to print this in a TextArea box like
cluster-1
item1
item2
cluster-2
item3
item4
cluster-3
item5
item6
I am generating this data from a java source file, I have control over this, if the format needs to be changed.