I need help transforming the following JSON string into an array:
[{id: "1", type: "railroadCrossingSign", latitude: "55.647432", longtitude: "12.187673"}, {id: "2", type: "stationSign", latitude: "55.647444", longtitude: "12.187545"}]
When trying to use JSON.parse()
, I encounter an error, likely due to the structure of the objects within the string...
Can anyone provide guidance on how to convert a JSON string containing objects into an array of objects?