138
I have a REST API, but the response I'm getting is like a string instead of JSON. Is there any way to convert a string into JSON?
You can use the JSON.parse() method.
JSON.parse()
JSON.parse(string-data)