X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FApp%2FMusicExpo.pm;h=ef99911562494db12f098cdc34bd9016ce0d12bd;hb=dfe0cbe22817910d2c942a891875fa95a2225584;hp=b2d1cb201032b59dcb995ec1566d0423901652f5;hpb=bb86a4168dde75bf8f5495b04ecbe44c3ce20741;p=app-musicexpo.git diff --git a/lib/App/MusicExpo.pm b/lib/App/MusicExpo.pm index b2d1cb2..ef99911 100644 --- a/lib/App/MusicExpo.pm +++ b/lib/App/MusicExpo.pm @@ -3,7 +3,7 @@ use v5.14; use strict; use warnings; -our $VERSION = 0.003001; +our $VERSION = '0.003002'; use Audio::FLAC::Header qw//; use HTML::Template::Compiled qw//; @@ -15,7 +15,7 @@ use DB_File qw//; use File::Basename qw/fileparse/; use Fcntl qw/O_RDWR O_CREAT/; use Getopt::Long; -use JSON; +use JSON::MaybeXS; use Storable qw/thaw freeze/; ################################################## @@ -129,7 +129,7 @@ sub run { push @files, \%entry } - my $json = JSON->new->utf8->canonical->encode({files => \@files, prefix => $prefix}); + my $json = JSON::MaybeXS->new(canonical => 1)->encode({files => \@files, prefix => $prefix}); $json =~ s//>/g; $ht->param(files=>[sort { $a->{title} cmp $b->{title} } @files], prefix => $prefix, json => $json); @@ -206,7 +206,7 @@ Marius Gavrilescu, Emarius@ieval.roE =head1 COPYRIGHT AND LICENSE -Copyright (C) 2013 by Marius Gavrilescu +Copyright (C) 2013-2014 by Marius Gavrilescu This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or,