Merge pull request #2169 from UrBnW/nsclientjson
fix(nsclient) properly decode JSON
This commit is contained in:
commit
48d16cde4e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue