[wp-trac] [WordPress Trac] #25639: Implement a JSON feed using rssjs.org spec

WordPress Trac noreply at wordpress.org
Thu Oct 24 03:10:36 UTC 2013


#25639: Implement a JSON feed using rssjs.org spec
-----------------------------+------------------------------
 Reporter:  nacin            |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Feeds            |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------

Comment (by pento):

 [https://github.com/pento/7B 7B] is starting to take shape. I've decided
 to make `/feeds/json/` a generic endpoint that we can change in the
 future, kind of like how `/feeds/` is currently rss2. With that in place,
 we can more easily upgrade to Activity Streams 2 in the future, for
 example. The various JSON implementations are now sub-endpoints of
 `/feeds/json/`. For example, Activity Streams 1.0 is `/feeds/json/as1/`.

 For more some coding style questions, any suggestion for how much this
 needs to change to go into core? In particular:

 * `feed-as1.php` relies on filters in a lot of places where other feeds
 use actions. This is primarily because I'm generating the entire JSON
 object before json_encode()-ing it, instead of printing the JSON as it's
 generated.
 * There's no `add_json_feed()` equivalent of `add_feed()`. Instead, I
 created a `json_feeds` filter that a new feed provider can hook into.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25639#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list