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

A Swift encoder and decoder for the JSON Feed format

License

Notifications You must be signed in to change notification settings

Flight-School/JSONFeed

Repository files navigation

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)

About

A Swift encoder and decoder for the JSON Feed format

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages