diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-01-06 18:03:50 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-01-06 18:03:50 +0100 |
commit | 8a73a65656be84b3e03b3804875a40a943c66039 (patch) | |
tree | d3b0d33dccc9c0d5fa3afe829ef65d335a63b456 /lib | |
parent | f99e069928a5df5b5d6a7f71f2177638a12d6844 (diff) |
Switch back to JSON::XS for decoding1.13.1
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Travelynx.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 7d762c8..2f60e54 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -1,7 +1,6 @@ package Travelynx; use Mojo::Base 'Mojolicious'; -use Mojo::JSON qw(decode_json); use Mojo::Pg; use Mojo::Promise; use Mojolicious::Plugin::Authentication; @@ -280,7 +279,8 @@ sub startup { # via https://github.com/marudor/BahnhofsAbfahrten/blob/master/src/server/Reihung/ICENaming.ts $self->attr( ice_name => sub { - my $id_to_name = decode_json( read_file('share/ice_names.json') ); + my $id_to_name = JSON->new->utf8->decode( + scalar read_file('share/ice_names.json') ); return $id_to_name; } ); |