Last active
March 24, 2020 16:33
-
-
Save KarenK1995/62336687d9c6495db2dc4b4d800b59dc 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
let user = [ | |
"name": "John", | |
"surname": "Smith", | |
"age": 18 | |
] as [String : Any] | |
do { | |
let userData = try JSONSerialization.data(withJSONObject: user, options: []) | |
} | |
catch { | |
print(error) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment