I have received the following JSON data from an endpoint:
{
"response": {
"lines": [
"[{'line':'3007621h7s2','type':'national'},{'line':'3007663f7s9','type':'international'}]",
"[{'line':'3007262p7f6','type':'national'},{'line':'3007262a0s1','type':'international'}]"
]
}
}
The property lines
is intended to contain multiple arrays, but in this case it is an array of strings. How can I convert each individual string in the lines property into an array of objects?
Thank you