js json escape

JavaScript
JSON.parse(JSON.stringify(jsonObject));
Source

Also in JavaScript: