Based on the list of installed Debian packages you've posted:

Debian GNU/Linux 10 ii libjson-perl 4.02000-1 all m +odule for manipulating JSON-formatted data ii libjson-xs-perl 3.040-1+b1 amd64 m +odule for manipulating JSON-formatted data (C/XS-accelerated)

It's likely that the problem is that the JSON::XS module is installed, so JSON wants to use it, but it is too old (3.040), so it doesn't have the boolean_values method.

The best solution would be upgrading JSON::XS to 4.0 or newer, but this may be problematic if there is no Debian package available for your OS version.

Alternatively, you could force JSON to use the JSON::PP backend, which should support the boolean_values method, at the expense of being slower.

By the way, you could probably ditch the JSON module altogether and use either JSON::PP or JSON::XS explicitly, because it's only a convoluted and slow wrapper with little to no useful new functionality.


In reply to Re: Issues using boolean_values in JSON v4.02 by kikuchiyo
in thread Issues using boolean_values in JSON v4.02 by bc3-au

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.