Debian 9 compatibility fix for JSON and RT, RT#78665
[freeside.git] / rt / lib / RT / Interface / Web.pm
index af41e5b..3ea4897 100644 (file)
@@ -194,7 +194,7 @@ SCALAR may be a simple value or a reference.
 =cut
 
 sub EncodeJSON {
-    my $s = JSON::to_json(shift, { allow_nonref => 1 });
+    my $s = JSON::to_json(shift, { allow_blessed => 1, allow_nonref => 1 });
     $s =~ s{/}{\\/}g;
     return $s;
 }