Running an issue with parsing JSON recieved from php backend. On php i have an array, which i send by json_encode:
$result[] = (object) array('src' => "{$mergedFile}", 'thumb_src' => "{$thumb_file}");
echo json_encode($result);
And when trying to JSON.parse it i recieve error:
"Uncaught SyntaxError: Unexpected token F"
The response itself looks this like:
[{"src":"upload\/lessons\/963\/video\/176481500-m.webm","thumb_src":"upload\/lessons\/963\/slide\/thumb_0f515a62753626e1aaefdc7968e8103e.jpg"}]
Very strange thing is that, similar code works nearby.. looks fine.. Appreciate any help, thanks.