my $json = $class->new->utf8(1)->pretty(1); #### my $json = JSON::MaybeXS->new(utf8 => 1, pretty => 1);