В php файле сделал так
$arr[] = array(
"totalCount" => '6679',
"topics" =>
array(
array(
"post_id" => "604220",
"topic_title" => "Status bar error with IFrames",
"topic_id" => "134120",
"author" => "Daz",
"post_time" => "1305857168",
"post_text" => "Ext version tested:",
"forum_title" => "EXT",
"forumid" => "41",
"reply_count" => "0"
)
)
);
$json = json_encode($arr);
echo $json;
Нечего не выводит.
Если объявить
$arr, то в консоли ошибка - SyntaxError: missing ; before statement
{"totalCount":"6679","topics":[{"post_id":"604220","topic_title":"Status