I'm using PHP to create my feed. If my feed is reading straight from the PHP script (i.e.
http://.....feed.php), I just include this in my PHP script
header("Content-type: application/json"); and echo my array using json_encode().
However, for several reasons, I don't want to use the PHP script as the feed. I want PHP to create a static JSON file, and then use that file as the feed. I am able to write the file, it looks like a well formed JSON object, but I get this error below.
If anyone knows of a good trick please let me know.
The server returned an unsupported content type. Was expecting 'application/rss+xml', 'text/xml', 'application/xml' or 'application/json' but received 'text/plain'.