Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Latest commit

 

History

History
34 lines (21 loc) · 716 Bytes

README.md

File metadata and controls

34 lines (21 loc) · 716 Bytes

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)