Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does it have any advantages over Atom, other than being for people who don’t like XML and like JSON for this use case?
 help



None whatsoever. The reader will either transform it to RSS or to a different intermediate representation and then render the html of the items -> there are the same limitations on how the text will be rendered, on what styling can be provided.

Wait JSON has some advantages in being able to list its own querystring parameters that can be used to modify its contents, right?

At the bottom of one of my pages I have "atom feed: small pics | large pics" - 2 links to two separate feeds. I'd also embed video in both feeds but not sure what the best markup would be for compatibility to all readers, so I leave it out hoping they'll click through. Not a good solution.

Querystring parameters would allow users to find out what works for them. Even a "feed signature" would be a good solution - paste your reader's code into the site, answer some questions, and get the perfect feed url for your reader according to your taste. I actually don't need headlines/titles either. It ends up clutter, with the same time better spent actually looking at the underlying post.


Querystring parameters: I don't think that's part of the spec. If it were, you could bet on Readers ignoring it. That you can serve different feeds for different parameters at the same endpoint, sure, but you could do the same with RSS/Atom :)

Right, it wouldn't be part of the spec.

https://shorturl.ly/vLT4t

see that JSON input - the top part are parameters, the bottom part feed items.

Parameters could be changed by users when inserting the feed into the reader.

eg site.com/jsonfeed?sort=latest&pics=big&video=yes&videomarkup=4

So those parameters would be shown within the JSON payload after fetching. The parameters section is also meant to make it self-evident as to how users can configure the query string for altering feed characteristics.

site.com/atomfeed?sort=latest&pics=big&video=yes&videomarkup=4

True - I suppose RSS/Atom could have some hidden developer notes (XML Comments) in there as well, but a user's customization wouldn't be formally specified as the JSON string would show, even though the final markup delivered to the reader for each item would be the same.

https://www.jsonfeed.org/ - that's only at v1.1 - could do with an update?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: