App-cpanurl
view release on metacpan or search on metacpan
script/cpanurl view on Meta::CPAN
10781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103
(
$JSON
||= __PACKAGE__->new->utf8)->encode(
@_
);
}
sub
decode_json {
# decode
(
$JSON
||= __PACKAGE__->new->utf8)->decode(
@_
);
}
# Obsoleted
sub
to_json($) {
Carp::croak (
"App::cpanurl::JSON::PP::to_json has been renamed to encode_json."
);
}
sub
from_json($) {
Carp::croak (
"App::cpanurl::JSON::PP::from_json has been renamed to decode_json."
);
}
# Methods
sub
new {
my
$class
=
shift
;
my
$self
= {
max_depth
=> 512,
( run in 0.598 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )