How to convert string to valid json ?
const string = "[{foo:bar,key:value},{foo:bar,key:value}]";
So that i can parse it using JSON.parse(string). Note that : i cant manually put (") to every keys and values. I am stack here that's why i am on stackoverflow.