mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-01 19:04:51 +02:00
decode utf8 meraki
This commit is contained in:
parent
518be5177e
commit
a38f2f3427
@ -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: $@");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user