js remove escape characters from json

JavaScript
var x = {"name":"void", "type":"O'\"Rielly"};
document.write(JSON.stringify(x, null, ' '));var x = {"name":"void", "type":"O'\"Rielly"};
document.write(JSON.stringify(x, null, '8'));
Source

Also in JavaScript: