Perl upgrade on Debian 9 causes JSON error

I’d like to document just a little bit more concerning this old problem, since it still seems to be an issue. This is my first RT install with the latest version being 4.4.2. The error I got was due to a JSON::PP::Boolean object being sent to JSON::to_json().

$VAR1 = [
{
‘Privileged’ => bless( do{(my $o = 1)}, ‘JSON::PP::Boolean’ ),
‘EmailAddress’ => ‘REDACTED’,
‘Name’ => ‘root’,
‘RealName’ => ‘Enoch Root’,
‘id’ => ‘14’
}
];

I found that I had both JSON::XS and JSON::PP installed. I removed the JSON::XS module with cpanm -U and the problem went away. HTH

1 Like