diff --git a/apps/microsoft/sccm/local/mode/sitestatus.pm b/apps/microsoft/sccm/local/mode/sitestatus.pm index 09775e5ab..f23945746 100644 --- a/apps/microsoft/sccm/local/mode/sitestatus.pm +++ b/apps/microsoft/sccm/local/mode/sitestatus.pm @@ -158,10 +158,10 @@ sub manage_selection { $self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1); $self->{output}->exit(); } - + my $decoded; eval { - $decoded = JSON::XS->new->utf8->decode($stdout); + $decoded = JSON::XS->new->decode($self->{output}->decode($stdout)); }; if ($@) { $self->{output}->add_option_msg(short_msg => "Cannot decode json response: $@");