-
-
Save davetron5000/7f459ef5732c42b4923b9a4e4607361f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "json" | |
DATA.each do |file| | |
json = JSON.parse(File.read(file)) | |
File.open(file,"w") do |out| | |
out.puts JSON.pretty_generate(json) | |
end | |
end | |
__END__ | |
tmp/blah.json | |
tmp/foo.json | |
test/test.json | |
test/test2.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment