diff options
author | Christian Pointner <equinox@spreadspace.org> | 2016-05-11 13:21:48 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2016-05-11 13:21:48 (GMT) |
commit | d3a58ca8d580d55e6ea1e6b7bab155b8855337d5 (patch) | |
tree | 240bb3c36c38614c159b20dd3796afc538d5bd04 /lib | |
parent | 47d2fa25c11d5b99d8f2f5dde01b78b151374799 (diff) |
moved to JSON::MaybeXS
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/RHRD/utils.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/RHRD/utils.pm b/lib/RHRD/utils.pm index 3835851..13e8ca1 100755 --- a/lib/RHRD/utils.pm +++ b/lib/RHRD/utils.pm @@ -28,7 +28,7 @@ use DateTime; use DateTime::TimeZone; use LWP::Simple; use URI::Fetch; -use JSON; +use JSON::MaybeXS; sub get_rd_week { @@ -178,7 +178,8 @@ sub fetch_parse_json my $json = $res->content; my $data; eval { - $data = from_json($json); + my $j = JSON::MaybeXS->new(utf8 => 0); + $data = $j->decode($json); 1; } or do { return (0, "error parsing import result"); |