SyntaxFix
Write A Post
Hire A Developer
Questions
I just ran into this problem and the actual issue was that I forgot to add a proper application/json header before spitting out the actual JSON data.
header('Content-Type: application/json');