How can I convert the string to an Object?
var string = "{ test: 'hello' }";
How can I convert the string to an Object?
var string = "{ test: 'hello' }";
This is very straightforward, please search google before posting.
const obj = JSON.parse(string);