X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/8084ef359515031ec8429b49baf0ab09858f55d2..4f152ed21fb137de6d6f4d48ec28d67055bcf965:/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};