- var_dump: documentation ( source)
- preg_match: documentation ( source)
<?php
preg_match('#{.*}#iu', 'Не удалось массовое обновление объявлений!{"error_detail":"","error_str":"\u041d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u0430\u043b\u043b\u043e\u0432","error_code":152}', $json);
var_dump($json);