Код PHP:
Код: Выделить всё
$json = json_encode([
'type' => 'news',
'status' => $status, // string
'data' => $news, // array of data
], JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
Вот как выглядит JSON:
[img]https://i. sstatic.net/qxIEE.png[/img]
Что здесь не так???
Подробнее здесь: https://stackoverflow.com/questions/468 ... rsed-by-js
Мобильная версия