Package: perl-doc
Version: 5.26.0-5
Severity: wishlist
File: /usr/share/man/man3/JSON::PP.3perl.gz

Say $json, like

        # OO-interface

        $json = JSON->new->allow_nonref;

        $json_text   = $json->encode( $perl_scalar );
        $perl_scalar = $json->decode( $json_text );

Don't say $coder, like

        # OO-interface

        $coder = JSON::PP->new->ascii->pretty->allow_nonref;

        $json_text   = $json->encode( $perl_scalar );
        $perl_scalar = $json->decode( $json_text );

Else one cannot run the examples.

Reply via email to