Skip to content

Instantly share code, notes, and snippets.

@nikita8
Created November 13, 2018 05:16
Show Gist options
  • Save nikita8/e06bc4bd22e28a235507c08b8c81d66c to your computer and use it in GitHub Desktop.
Save nikita8/e06bc4bd22e28a235507c08b8c81d66c to your computer and use it in GitHub Desktop.
JSON decoding in Ruby
#ruby
str = `{"page": 1, "fruits": ["apple", "peach"]}`
JSON.parse(str)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment