laminas / laminas-feed

Consume and generate Atom and RSS feeds, and interact with Pubsubhubbub.
https://docs.laminas.dev/laminas-feed/
BSD 3-Clause "New" or "Revised" License
147 stars 26 forks source link

Feature Request: JSON Feed support #10

Closed weierophinney closed 1 year ago

weierophinney commented 4 years ago

Would be awesome if Zend Feed supported parsing JSON feeds. Publishing and parsing them is much more straightforward and lightweight compared to RSS and Atom, and adoption is starting to pick up.


Originally posted by @brandonkelly at https://github.com/zendframework/zend-feed/issues/42

weierophinney commented 4 years ago

It would be good, but I'm very wary of a month old standard which all but states that Version 1 may be the only version ever needed. Talk about hubris... The problem with these random drop standards, regardless of who writes them, is their isolation/lack of feedback during development. The issue tracker is littered with basic questions, improvements and problems that seem to firmly point to a Version 2 being needed sooner rather than later.

That said, all wariness aside, it should be relatively easy to add but I would expect support to need an overhaul in time to remain relevant. The spec and Atom/RSS mappings also needs a close reading, and it may be prone to disruption if a major JSONFeed publisher starts hacking in some customisations.

Then again, isn't that all new stuff in a nutshell? :)


Originally posted by @padraic at https://github.com/zendframework/zend-feed/issues/42#issuecomment-308387623

weierophinney commented 4 years ago

I think major feedreader support it : feebin.com, inoreader.com etc. not sure how much work needed, but will be great if we add json feed support.


Originally posted by @rajjanorkar at https://github.com/zendframework/zend-feed/issues/42#issuecomment-336831837

froschdesign commented 4 years ago

The problem so far has been that there was no schema which can be used for validation. But now there are schemas for version 1.0 and 1.1 of "JSON Feed": https://github.com/sonicdoe/jsonfeed-schema

I already created a prototype for reading a JSON feed but for the writing part we need to split the Laminas\Feed\Writer\Renderer\RendererInterface because it's based on XML output:

https://github.com/laminas/laminas-feed/blob/254bfabeac599a704bc0aa798a961fcfa7a1c127/src/Writer/Renderer/RendererInterface.php#L23-L42

dvikan commented 1 year ago

+1

rajpt commented 1 year ago

+1

Ocramius commented 1 year ago

Ah yep, closing+locking until I see real traction on that spec.