PHP json_encode with apostrophe

JSON encoded data with an apostrophe and the JSON_HEX_APOS option

JavaScript

var obj = jQuery.parseJSON('{"casts":["Matthew Modine","Adam Baldwin","Vincent D\u0027Onofrio"],"year":1987}');
console.log(obj);