I am trying to create an object out of string which is not a typical JSON string.
Here is the example:
var ObjectInString = "{x:62.43993,y:293.64093}"; //string i want to turn into an object
var ObjectWhichWorks = {x:62.43993,y:293.64093};
console.log(ObjectInString);
console.log(ObjectWhichWorks);
JSON.parse(string)to convert string to objectJSON.parse(JSON.stringify(ObjectInString))