fix(nsclient) properly decode JSON
This commit is contained in:
parent
d931564653
commit
5570b78c3f
|
@ -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