Introduced in Swift 4 to replace NSCoding APIs, Codable also ... try JSONDecoder().decode([Post].self, from: json.data(using: .utf8)!) ...
確定! 回上一頁