diff --git a/pkg/jsonfeed/testdata/feed.json b/pkg/jsonfeed/testdata/feed.json new file mode 100644 index 0000000..da9ed9e --- /dev/null +++ b/pkg/jsonfeed/testdata/feed.json @@ -0,0 +1,23 @@ +{ + "version": "https://jsonfeed.org/version/1", + "title": "JSON Feed", + "icon": "https://micro.blog/jsonfeed/avatar.jpg", + "home_page_url": "https://www.jsonfeed.org/", + "feed_url": "https://www.jsonfeed.org/feed.json", + "items": [ + { + "id": "http://jsonfeed.micro.blog/2020/08/07/json-feed-version.html", + "title": "JSON Feed version 1.1", + "content_html": "

We’ve updated the spec to version 1.1. It’s a minor update to JSON Feed, clarifying a few things in the spec and adding a couple new fields such as authors and language.

\n\n

For version 1.1, we’re starting to move to the more specific MIME type application/feed+json. Clients that parse HTML to discover feeds should prefer that MIME type, while still falling back to accepting application/json too.

\n\n

The code page has also been updated with several new code libraries and apps that support JSON Feed.

\n", + "date_published": "2020-08-07T11:44:36-05:00", + "url": "https://www.jsonfeed.org/2020/08/07/json-feed-version.html" + }, + { + "id": "http://jsonfeed.micro.blog/2017/05/17/announcing-json-feed.html", + "title": "Announcing JSON Feed", + "content_html": "\n\n

We — Manton Reece and Brent Simmons — have noticed that JSON has become the developers’ choice for APIs, and that developers will often go out of their way to avoid XML. JSON is simpler to read and write, and it’s less prone to bugs.

\n\n

So we developed JSON Feed, a format similar to RSS and Atom but in JSON. It reflects the lessons learned from our years of work reading and publishing feeds.

\n\n

See the spec. It’s at version 1, which may be the only version ever needed. If future versions are needed, version 1 feeds will still be valid feeds.

\n\n

Notes

\n\n

We have a WordPress plugin and, coming soon, a JSON Feed Parser for Swift. As more code is written, by us and others, we’ll update the code page.

\n\n

See Mapping RSS and Atom to JSON Feed for more on the similarities between the formats.

\n\n

This website — the Markdown files and supporting resources — is up on GitHub, and you’re welcome to comment there.

\n\n

This website is also a blog, and you can subscribe to the RSS feed or the JSON feed (if your reader supports it).

\n\n

We worked with a number of people on this over the course of several months. We list them, and thank them, at the bottom of the spec. But — most importantly — Craig Hockenberry spent a little time making it look pretty. :)

\n", + "date_published": "2017-05-17T10:02:12-05:00", + "url": "https://www.jsonfeed.org/2017/05/17/announcing-json-feed.html" + } + ] +}