Subject: | JSON::XS::Boolean values cannot be cloned by Data::Clone |
use JSON::XS qw();
use JSON::Pointer qw();
JSON::Pointer->add(JSON::XS::decode_json('{"t":true}'), '/foo', 'bar');
The program will abort with the error message:
Modification of a read-only value attempted at …/JSON/Pointer.pm line 93.