Last active
July 21, 2020 01:42
-
-
Save MartinGonzalez/5667aff82dd05375ac342d1366b5dc76 to your computer and use it in GitHub Desktop.
read_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
# ./path/to/example.json => { "name": "Martin", "age": 30 } | |
my_json = read_json( | |
json_path: "path/to/example.json" | |
) | |
puts(my_json[:name]) | |
# "Martin" | |
puts(my_json[:age]) | |
# 30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment