Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/Flight-School/JSONFeed
- Owner: Flight-School
- License: mit
- Created: 2018-05-10T15:13:58.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-11-09T19:44:02.000Z (over 4 years ago)
- Last Synced: 2024-10-13T02:02:46.010Z (4 months ago)
- Topics: codable, jsonfeed, swift
- Language: Swift
- Homepage: https://flight.school
- Size: 22.5 KB
- Stars: 51
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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 = .iso8601let 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