4 ms·
Personally, I don’t care at all since we’ve gotten JSON feeds. https://en.wikipedia.org/wiki/JSON_Feed https://en.wikipedia.org/wiki/JSON_Feed Not every progr
by latexr 3mo ago
Personally, I don’t care at all since we’ve gotten JSON feeds.
https://en.wikipedia.org/wiki/JSON_Feed https://en.wikipedia.org/wiki/JSON_Feed
Not every programming language I use can output RSS/Atom/XML by default, but pretty much all of them can output JSON natively, no library needed, just fine. The spec is short and easy to understand, to the point it’s little effort to manipulate the feeds, adding to them or consuming them even without a dedicated reader if need be.
To consume other people’s feeds, I mostly don’t care what format they are as long as my reader can understand them. To generate my feeds, I always use JSON. Most of them are for personal use, but even for those which aren’t, I never had any complaints (most feed readers seem to be able to read those just fine).
- mbirth 3mo agoBut JSON doesn’t allow you to run it through an XSLT and get a normal webpage out of it, does it?
- latexr 3mo agoApparently it does. https://stackoverflow.com/a/49011455 https://stackoverflow.com/a/49011455 That’s not something I care about, though. I don’t mean to imply that JSON feeds are objectively superior to RSS and Atom, I just mean to share what my personal observations are, which might be useful to someone else too.
- tjansen 3mo agoI guess it's like you can't transform XML with JSON-T :) Seriously, yes, the really old XSLT does not support JSON. But these days it is much easier to find tools that read or write JSON than to find decent XML support.
- rhdunn 3mo agoXSLT 3 (via XPath 3.1) has support for maps, arrays, and parsing JSON to/from those or an XML representation. The XML representation is easier to work with in 3. There's a draft version of XSLT 4 that Saxon supports which adds more capabilities for working with map and array types.
- BoingBoomTschak 3mo agosfeed and newsboat don't support it, though. I do note that elfeed does.