JSONFeed

master

A Swift encoder and decoder for the JSON Feed format
Flight-School/JSONFeed

JSONFeed

Build Status

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!)")
}

License

MIT

Contact

Mattt (@mattt)

Description

  • Swift Tools 5.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sat Oct 16 2021 01:56:33 GMT-0500 (GMT-05:00)