For example, a HTTP REST API just returned me a JSON, but of course it's a string right now. How can I turn it into a JSON?
You need to use this function.
JSON.parse(yourJsonString);
And it will return the object / array that was contained within the string.