JSON Feed, and JSON in RSS

The open web is made possible with syndication feeds. The big games in town can be broadly split into four camps:

  • Scraping a page to get content, or using site-specific APIs. We mostly got over this, but social networks have reverted to this to keep you on their sites.

  • The RSS 1.0 family, which uses RDF. The idea was the Dublin Core and other namespaces had already done the painstaking work of defining attributes, so you could just use them.

RSS icon from the Gnome Colors project

  • RSS 2.0, as championed by Dave Winer. It included simplified list of standard attributes, which could be extended with namespaces. It was the first to support podcasting, and is still the most compatible. I used to prefer 1.0 because of my preference and interest in RDF, but have long since stuck with 2.0.

  • Atom, which was unironically created due to there being too many syndication formats. It also fixed a few consistency issues, including date formatting.

Aside from point 1, the assumption was we’d be dealing with XML, or something close to it. I don’t see this changing, but there are a couple of new developments.

JSON Feed

Brent Simmons and Manton Reece introduced JSON Feed in May:

… JSON has become the developers’ choice for APIs, and that developers will often go out of their way to avoid XML. JSON is simpler to read and write, and it’s less prone to bugs.

I don’t write software full time, so I defer to their expertise about developer’s choice. Certainly every web API I’ve used implements JSON.

That said, I’ve never had a problem with parsing RSS feeds in my scripts. Import a CPAN package or a Ruby gem, and I’m done. There are poorly formatted RSS feeds I need to fix with some regex, but the same could happen to JSON.

I guess it would come down to opportunity cost. If you’re already ingesting and working with JSON, being able to naturally extend this to syndication would make sense.

RSS in JSON

Around the same time Brent and Manton were working on the JSON Feed spec, Dave Winer released RSS in JSON:

It’s simply an RSS 2.0 feed that uses JSON syntax in place of XML.

Admittedly, this is what I thought JSON Feed was, before I read the incompatible spec. If a dislike of XML and a preference for JSON were the two reasons, RSS in JSON would seem to be the logical choice. Existing taxonomies and data structures could be maintained, literally all you’re changing is the delivery mechanism.

I’ll be implementing it on Rubénerd as an interesting project, but as Dave professed when he first checked it out in 2012, I’m not sure if it’ll really be used.