My challenge lies in converting a JSON string from one format to another. The initial format is:
[
{
clientIDs:
"WELL #6",
analyteIDs:
[
"7440-62-2",
"7440-28-0"
]
}
]
The desired output should look like this:
[
{
header:
"WELL #6",
items:
[
header: "7440-62-2",
header: "7440-28-0"
]
}
]
I am facing difficulty with the values that do not have key names specified.