lar keys %$self;
require JSON;
my $j = $p ? $jp ||= JSON->new->allow_unknown->allow_blessed->utf8->convert_blessed->canonical->pretty
: $js ||= JSON->new->allow_unknown->allow_b
return join "\n", map {sprintf "%-${m1}s at %-${m2}s line %${m3}s%s", @$_} @trace;
}
sub TO_JSON { return {%{$_[0]}} }
sub classify {
my ($err, $ref) = @_;
$ref = {$ref => 1} if ! ref $
ll json error stringification to use pretty. You can also set _pretty => 1 in
individual errors, but sometimes you won't have access to the error object before
it stringifies.
=item TO_JSON
JSONifi