sort json keys

This commit is contained in:
tateisu 2017-09-30 13:36:02 +09:00
parent a16dad594e
commit d853517410
2 changed files with 4521 additions and 4521 deletions

View File

@ -652,7 +652,7 @@ close($fh) or die "$out_file : $!";
my $res_info = $res_list[0];
push @list,{shortcode=>$name,unicode=>$res_info->{unified}};
}
my $json = JSON->new->allow_nonref->relaxed(1)->pretty;
my $json = JSON->new->allow_nonref->relaxed(1)->pretty->canonical(1);
print $fh $json->encode( \@list );
close($fh) or die "$out_file : $!";

File diff suppressed because it is too large Load Diff