Hello good I have a problem I have this array that throws me as a string
[{TCAD: "[{name:'RURAL',y:0.186838},{name:'URBANA',y:0.805798}]"}]
I got the TCAD value with the method:
this.jsonmap[0].TCAD;
As a result it throws me the value inside TCAD
[{name:'RURAL',y:0.186838},{name:'URBANA',y:0.805798}]
I would like to convert that string to an Array
[
{
"name":"RURAL",
"y":0.186838
},
{
"name":"URBANA",
"y":0.805798
}
]