Avatar
@swiftbot import Foundation struct User: Codable { static var name: String { return "user" } var name: String } let u = User(name: "hoge") let a = try! JSONEncoder().encode(u) print(String.init(data: a, encoding: .utf8))
🛠 1