X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/b27c05d659c377d0911e6b1bde6d4d92d6cc19e2..245d5036b6fbc2c9e4692244aff22d5188771e09:/SL/Template/Plugin/JSON.pm diff --git a/SL/Template/Plugin/JSON.pm b/SL/Template/Plugin/JSON.pm index 3709d8f0a..0586511c6 100644 --- a/SL/Template/Plugin/JSON.pm +++ b/SL/Template/Plugin/JSON.pm @@ -1,5 +1,6 @@ package SL::Template::Plugin::JSON; +use strict; use JSON (); use Carp qw(croak); use base qw(Template::Plugin); @@ -20,7 +21,7 @@ sub json_converter { 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};