Skip to content

Instantly share code, notes, and snippets.

@christophsturm
Created April 5, 2012 15:08
Show Gist options
  • Save christophsturm/2311840 to your computer and use it in GitHub Desktop.
Save christophsturm/2311840 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'json'
json=JSON.pretty_generate(JSON.parse(File.open(ARGV[0]).read))
File.open(ARGV[0],"w").write(json)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment