Skip to content

Instantly share code, notes, and snippets.

@swdyh
Created April 2, 2011 12:07
Show Gist options
  • Save swdyh/899444 to your computer and use it in GitHub Desktop.
Save swdyh/899444 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rubygems'
require 'json'
if File.exists? ARGV.first
j = JSON.parse(IO.read(ARGV.first))
puts JSON.pretty_generate(j)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment