0
I am trying to create an api in my application, but it is returning me the following error: Syntaxerror: JSON.parse: Unexpected Character at line 1 column 1 of the JSON data
I’m using Zend Framework 3.
<?php header('Content-type: application/json; charset=utf-8');
echo json_encode(array("teste"=>"123"), JSON_UNESCAPED_UNICODE);
Is any configuration of Zend giving conflict?