Skip to content

Instantly share code, notes, and snippets.

@nexneo
Created August 22, 2008 00:18
Show Gist options
  • Save nexneo/6674 to your computer and use it in GitHub Desktop.
Save nexneo/6674 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby -wKU
require 'rubygems'
require 'json'
json = `curl -s #{ARGV}`
puts JSON.pretty_generate(JSON.parse(json))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment