Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Sort prettified JSON
  • Loading branch information
japhb committed Feb 18, 2013
1 parent 284cccf commit 0fa6f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/prettify-json
Expand Up @@ -11,5 +11,5 @@ my $pretty_file = $raw_file;
$pretty_file =~ s/(\.json)$/-pretty$1/;

my $raw = read_file($raw_file);
my $pretty = to_json(from_json($raw), { pretty => 1});
my $pretty = to_json(from_json($raw), { pretty => 1, canonical => 1 });
write_file($pretty_file, $pretty);

0 comments on commit 0fa6f10

Please sign in to comment.