Created
July 21, 2020 02:03
-
-
Save MartinGonzalez/2f257a932887b12f7917c3fd853fab72 to your computer and use it in GitHub Desktop.
download_json example
This file contains 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
my_json = download_json( | |
json_url: "https://gist.githubusercontent.com/MartinGonzalez/77b28af666fc2ee844c96cf6c8c221a2/raw/d23feabf25abe39c9c7243fd23f92efa7f50a3fd/someExample.json" | |
) | |
p(my_json[:name]) | |
# "Martin Gonzalez" | |
p(my_json[:gender]) | |
# male | |
p(my_json[:isDev]) | |
# true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment