Flight School JSONFeed Save

A Swift encoder and decoder for the JSON Feed format

Project README

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)

Open Source Agenda is not affiliated with "Flight School JSONFeed" Project. README Source: Flight-School/JSONFeed
Stars
51
Open Issues
0
Last Commit
3 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating