nce; eval { require JSON::XS; $instance = JSON::XS->new->utf8->allow_nonref; 1; } or do { require JSON; $instance = JSON->new->utf8->allow_nonref; }