Skip to content

Instantly share code, notes, and snippets.

@k-yamada
Created December 11, 2012 07:17
Show Gist options
  • Save k-yamada/4256532 to your computer and use it in GitHub Desktop.
Save k-yamada/4256532 to your computer and use it in GitHub Desktop.
json parse
#!/usr/bin/env ruby
require 'json'
inp = ARGV[0]
jj(JSON.parse!("#{inp}"))
$ chmod +x jsonparse
$ mv jsonparse /usr/local/bin
$ jsonparse {\"test\":1}
{
"test": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment