decode utf8 meraki

This commit is contained in:
garnier-quentin 2020-10-08 15:56:26 +02:00
parent 518be5177e
commit a38f2f3427

View File

@ -221,7 +221,7 @@ sub request_api {
my $content; my $content;
eval { eval {
$content = JSON::XS->new->allow_nonref(1)->decode($response); $content = JSON::XS->new->utf8->allow_nonref(1)->decode($response);
}; };
if ($@) { if ($@) {
$self->{output}->add_option_msg(short_msg => "Cannot decode json response: $@"); $self->{output}->add_option_msg(short_msg => "Cannot decode json response: $@");