You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The module fails to produce JSON compliant output when it encounters NULL and number (integer/float) values.
One of the problems seems to be that the Log::Log4perl::Layout::PatternLayout module automatically turns undef to a string ("[undef]").
The other is probably a Perl autovivification issue; numbers are represented as strings.
Impacted version is 0.56.
Hi,
The module fails to produce JSON compliant output when it encounters NULL and number (integer/float) values.
One of the problems seems to be that the Log::Log4perl::Layout::PatternLayout module automatically turns undef to a string ("[undef]").
The other is probably a Perl autovivification issue; numbers are represented as strings.
Impacted version is 0.56.
Output generated:
I could manage to patch this by adding:
which produces the expected output:
It only seems to be working however using Cpanel::JSON::XS, but not with JSON::XS.
Could this be looked into please?
Many thanks.
The text was updated successfully, but these errors were encountered: