Here is my string
{ \'user\': { \'name\': \'abc\', \'fx\': { \'message\': { \'color\': \'red\' }
May be i am too late to the party but this will parse/escape single quote (don't want to get into a battle on parse vs escape)..
JSON.parse("\"'\"")