Created
April 27, 2018 02:31
-
-
Save azamsharp/7c8287adcc14c138220e05c0a029e829 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 dictionary = try! JSONDecoder().decode([String:AnyDecodable].self, from: json) | |
dictionary["foo"]?.value // prints hello |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment