After receiving a JSON response, I used the code snippet
result = JSON.parse(result.value);
to parse it.
The JSON response I received was:
{"name":"For ","children":["{ \"name\":\"sxsm cnklsd\"}","{ \"name\":\"smd csdm\"}"]}
.
My goal is to convert this structure into the desired format:
{
"name": "For ",
"children": [
{
"name": "sxsm cnklsd"
},
{
"name": "smd csdm"
}
]
}
I attempted double parsing, stringify, and then parsing again but nothing seemed to work. Any assistance would be greatly appreciated.