Json Parse Error On Line 1: < Html > < Body >
i dont know why the code is not working, it should encode to json ? when i call this PHP code link from app in Android studio its not working and display error message ,it display
Solution 1:
Your Json is correct, the issue is your returning HTML, you're not telling the browser that the content is Json.
Use
header('Content-Type: application/json');
echo json_encode($response);
Post a Comment for "Json Parse Error On Line 1: < Html > < Body >"