一个JSON Feed格式的Swift编码器和解码器
一个JSON Feed格式的Swift编码器和解码器
Swift JSON处理
共48Star
详细介绍
JSONFeed
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)
-
263 Star
-
365 Star
-
1910 Star
-
228 Star
-
133 Star
-
686 Star
-
75 Star
-
26 Star
-
0 Star