Skip to content

Instantly share code, notes, and snippets.

@MartinGonzalez
Last active July 21, 2020 01:42
Show Gist options
  • Save MartinGonzalez/5667aff82dd05375ac342d1366b5dc76 to your computer and use it in GitHub Desktop.
Save MartinGonzalez/5667aff82dd05375ac342d1366b5dc76 to your computer and use it in GitHub Desktop.
read_json example
# ./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