Skip to content

Instantly share code, notes, and snippets.

Created August 22, 2016 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/bf6a13fd291e4b97db3ebeb12c5f7238 to your computer and use it in GitHub Desktop.
Save anonymous/bf6a13fd291e4b97db3ebeb12c5f7238 to your computer and use it in GitHub Desktop.
[1] pry(main)> {"x"=>"x"}
=> {"x"=>"x"}
[2] pry(main)> require 'json'
=> true
[3] pry(main)> {"x"=>"x"}.to_json
=> "{\"x\":\"x\"}"
[4] pry(main)> puts _
{"x":"x"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment