package SL::Template::Plugin::JSON;
 
+use strict;
 use JSON ();
 use Carp qw(croak);
 use base qw(Template::Plugin);
   my ($self, %params) = @_;
 
   if (!$self->{json}) {
-    $self->{json} = JSON->new->allow_nonref(1);
+    $self->{json} = JSON->new->allow_nonref(1)->convert_blessed(1);
 
     my $args = $self->{json_args};