rt 4.2.15
[freeside.git] / rt / lib / RT / Interface / Web.pm
index af41e5b..a26c416 100644 (file)
@@ -2,7 +2,7 @@
 #
 # COPYRIGHT:
 #
-# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-2018 Best Practical Solutions, LLC
 #                                          <sales@bestpractical.com>
 #
 # (Except where explicitly superseded by other copyright notices)
@@ -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;
 }