In Node.js, how do I turn a string to a json? [duplicate]
You need to use this function.
JSON.parse(yourJsonString);
And it will return the object / array that was contained within the string.
use the JSON function >
JSON.parse(theString)
You need to use this function.
JSON.parse(yourJsonString);
And it will return the object / array that was contained within the string.
use the JSON function >
JSON.parse(theString)