Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Flight-School/JSONFeed

A Swift encoder and decoder for the JSON Feed format
https://github.com/Flight-School/JSONFeed

codable jsonfeed swift

Last synced: 3 months ago
JSON representation

A Swift encoder and decoder for the JSON Feed format

Awesome Lists containing this project

README

        

# JSONFeed

[![Build Status][build status badge]][build status]

A Swift encoder and decoder for the [JSON Feed](https://jsonfeed.org) format.

## Usage

```swift
// 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](https://twitter.com/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