package Service::JSON; use warnings; use strict; use parent 'Service'; use Cpanel::JSON::XS qw{ encode_json }; sub new { my $class = shift; my $self = $class->SUPER::new(@_); $self->{template} = encode_json({data => '[data]'}); return $self } __PACKAGE__