fix(nsclient) properly decode JSON

This commit is contained in:
UrBnW 2020-08-24 16:54:44 +02:00
parent d931564653
commit 5570b78c3f
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ sub format_result {
my $decoded;
eval {
$decoded = decode_json($options{content});
$decoded = JSON::XS->new->decode($options{content});
};
if ($@) {
$self->{output}->output_add(long_msg => $options{content}, debug => 1);