function fix_json($str) {
return preg_replace_callback(
'/\\\\u([0-9a-f]{4})/i',
function ($matches) {
$sym = mb_convert_encoding(
pack('H*', $matches[1]),
'UTF-8',
'UTF-16'
);
return $sym;
},
$str
);
}