Contents

flight-school/jsonfeed

A Swift encoder and decoder for the [JSON Feed](https://jsonfeed.org) 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)

[build status]: https://github.com/Flight-School/JSONFeed/actions?query=workflow%3ACI [build status badge]: https://github.com/Flight-School/JSONFeed/workflows/CI/badge.svg

Package Metadata

Repository: flight-school/jsonfeed

Default branch: master

README: README.md