Created
February 2, 2011 04:04
-
-
Save jonjensen/807220 to your computer and use it in GitHub Desktop.
JSON pretty-printer
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 perl | |
use JSON; | |
my $json = JSON->new; | |
undef $/; | |
while (<>) { | |
print $json->pretty->encode($json->decode($_)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment