http://www.perlmonks.org?node_id=1043665


in reply to Re: json return value
in thread json return value

"perl does not have JSON as part of it's core module set"

True, but recent versions of Perl do have JSON::PP, which provides an almost identical API. The OP could consider switching to that if he doesn't have JSON and doesn't want to install it.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name