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 ScientificName: Codable { var genus: String var species: String var subspecies: String? } let momiji = ScientificName(genus: "Acer", species: "palmatum") let jsonData = try JSONEncoder().encode(momiji) // {"genus":"Acer","species":"palmatu
![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)