Merge pull request #2169 from UrBnW/nsclientjson

fix(nsclient) properly decode JSON
This commit is contained in:
qgarnier 2020-09-01 10:29:49 +02:00 committed by GitHub
commit 48d16cde4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);