A worked example, rendered from real sample data. Sign in to run the tool on your own input.
{"id":123,"title":"Hello","author":"Swift Dev","published":true,"views":9999}struct Root: Codable {
let id: Int
let title: String
let author: String
let published: Bool
let views: Int
}
Generate a Codable Swift struct from a JSON sample. Part of the DevTools Surf developer suite. Browse more tools in the Converters collection.