A Swift encoder and decoder for the JSON Feed format

JSONFeed

A Swift encoder and decoder for the JSON Feed format.

Usage

// For an example, see https://jsonfeed.org/feed.json
let json = "{ ... }"

let decoder = JSONDecoder()
decoder.dateDecodingStrategy = .iso8601

let feed = try! decoder.decode(Feed.self, from: data)

print(feed.title)

for item in feed.items {
    print("* \(item.title!) - \(item.datePublished!)")
}

GitHub