Swift is a general-purpose programming language that’s approachable for newcomers and powerful for experts. It is fast, modern, safe, and a joy to write. struct Binomial: Codable { var genus: String var species: String var subspecies: String? } let tree = Binomial(genus: "Pin", species: "oak") let jsonData = try JSONEncoder().encode(tree) // {"genus":"Pin","species":"oak"} struct ScientificName {
![Swift.org](https://cdn-ak-scissors.b.st-hatena.com/image/square/f7ab2b89a1709883f486287c740bc3594c3d918e/height=288;version=1;width=512/https%3A%2F%2Fswift.org%2Fapple-touch-icon-180x180.png)