Created
April 3, 2018 06:54
-
-
Save Agarunov/fb5d2fd0700df9b7f0e2d2995f56cffe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Pet { | |
let name: String | |
} | |
let pets = [Pet(name: "Beethoven")] | |
let encoder = JSONEncoder() | |
try! encoder.encode(pets) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment