Created
August 22, 2016 21:47
-
-
Save jlav1n/78751834e71291103d7d39bdd1bb48bc 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
#!/bin/env perl | |
use strict; | |
use warnings; | |
use JSON::MaybeXS qw(decode_json); | |
chomp( my $input = <STDIN> ); | |
my $ref = decode_json( $input ); | |
my $json = JSON::MaybeXS->new; | |
print $json->pretty(1)->canonical(1)->encode( $ref ) . "\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment