fixed it. Turns out if you set

header('Content-Type: application/json; charset=utf-8');

It lets you pretty print json.

no, but other people's jsonfeed looks pretttttty!

It's a very small change -
echo jsonencode($feedjson, JSONPRETTYPRINT);

But it's not working well for me. Wtih so many quotes, posts, links and emoji, it's bound to have been screwed up somewhere…

yeah I don't think it's the emoji. Something else is screwed up in that code.

Also, RSS feed is capped at 20 items, but the json code has a flaw where I forgot to do i++ to increment the counter. So right now it displays everything. What do you think? Should it be capped at 20 items or not?

also, I'm looking into pretty printing the json. This is fugly!

awesooome! And yeah, I was trying to print the wrong variable…

Hey, The emoji thing is weird and not good…

But I'm not seeing the same result. My rss shows smileys as ->

Testing smiley in rss 😂😊

Testing smiley in rss ??

hey… So… Like I said, I made some changes to the base repo. Check them out and see if they make sense.

Also, I was trying to get the json feed working, but I didn't get it right in the end. Here's the code if you want to build on it. -> https://gist.github.com/nitinthewiz/965f602b7e68676c4d71e86021216835

I used Manton Reece's jsonfeed for wordpress plugin for inspiration since it doesn't make sense to import any other libraries for such a small task - https://github.com/manton/jsonfeed-wp

Holy moley! Github just gave me a "405 Not Allowed | nginx"

Daaamn!

looks like you'll get there first. GitHub has outage issues atm…