How to convert this array string value to an array.
data = ["genStatus: INPROGRESS,DONE",
"status: ACTIVE,DEACTIVATE"]
the expected output should be like this:
data = {
genStatus: ["INPROGRESS","DONE"],
status: ["ACTIVE", "DEACTIVATE"]
}
or should be like this
data = [{ name: 'genStatus', data: [{name: 'INPROGRESS'}, {name: 'DONE'}]},
{ name: 'status', data: [{name: 'ACTIVE'}, {name: 'DEACTIVATE'}]}]