Let's say I have an object:
person={'name':'john "Garfield"'};
And I convert it to a string:
JSON.stringify(person);
// RESULT: {"name":"john \"Garfield\""}
And then I store that string on MySQL or anything else and later I get that string on node.js (using interactive console):
string = '{"name":"john \"Garfield\""}';
// RESULT: {"name":"john "Garfield""}
Then I parse the object:
JSON.parse(string);
RESULT: SyntaxError: Unexpected token G
How can I parse stored json stringified string? I have them on MySQL and they loose their scaping slashes when requested by the MySQL library.