by kris-s · 7y ago · 0 comments
Doing this in JSON does not suddenly mean you don't need a convention (aka standard) for fields and types. It's data exchange. The reader needs to know what your data means. You still have pubdates, links, titles, descriptions and you still need to label them in a semi-strict way somehow.
All in all, JSON will save you a few bytes but it would just be another standard on the pile, just with no libraries around to write the RSSJSON format.
JSON doesn't fix XML.
RSS: 33,228
Atom: 43,433
JSON: 36,137Can I see?
(To be clear to anybody reading this out of context: I'm not claiming that JSON is best —far from it— just that I would expect it to be a few bytes lighter in transit.)
http://boston.conman.org/index.atom
http://boston.conman.org/index.json
http://boston.conman.org/bostondiaries.rss
Each one contains the full text of the past 15 entries.This does sound painful, unlike parsing ordinary XML.
Beyond that, you can use powerful tools like namespacing, schemas, XSL, etc if you want them, and they are also ubiquitous across most major programming language ecosystems. They add complexity, but so do their JSON analogues.
It seems that people often reinvent aspects of the XML ecosystem using JSON. For example, JSON Schema is like XML schema, OpenAPI is like WSDL, JSONPath is like XPath. That's not to say I don't support these efforts - I think it is great that people are developing powerful tools for JSON. However, I think there is a misconception that the XML ecosystem is less "à la carte" than the JSON ecosystem when it comes to these added complexities. You don't need to deal with them unless you need/want to, and then it is nice to have standardised, battle-tested implementations.
RSS: ~20 [3]
Atom: ~25 [3]
JSON: 1
gopher: 7
I don't think using JSON is any help towards a decentralized system of blogs. It's just another format to generate.[2] My blog is also available via gopher, gopher://gopher.conman.org/
[3] Unique user agents---probably not the best metric, but for a quick scan, easy enough to check.
Edit: formatting