Created
April 26, 2018 23:40
-
-
Save azamsharp/f90d94d330c30b788704765e88e77d14 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 json = """ | |
{ | |
"foo" : "hello", | |
"bar" : 123 | |
} | |
""".data(using: .utf8)! | |
let dictionary = try! JSONDecoder().decode([String:Any].self, from: json) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment