<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From 5b6dfb4787c9e110ba59221c5d257a6b443c7612 Mon Sep 17 00:00:00 2001
From: Slaven Rezic &lt;cpansand@eserte&gt;
Date: Sun, 24 Apr 2016 10:24:13 +0000
Subject: [PATCH] set allow_nonref (RT #112960)

---
 t/madness_json.t | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/madness_json.t b/t/madness_json.t
index db13def..c99ec59 100644
--- a/t/madness_json.t
+++ b/t/madness_json.t
@@ -230,7 +230,7 @@ format STDOUT =
     else {
         $expected_dot = 'undef';
     }
-    my $jstrue= JSON::XS::decode_json("true");
+    my $jstrue= JSON::XS-&gt;new-&gt;allow_nonref-&gt;decode("true");
     my %hash = (
         UND =&gt; undef,
         IV  =&gt; 1,
@@ -392,7 +392,7 @@ EXPECT
     }
     # In JSON::XS &lt; 3, the boolean class is JSON::XS::Boolean
     # In JSON::XS &gt;= 3, the boolean class is JSON::PP::Boolean
-    my $json_boolean_class = ref JSON::XS::decode_json("true");
+    my $json_boolean_class = ref JSON::XS-&gt;new-&gt;allow_nonref-&gt;decode("true");
     $expect =~ s{JSON::XS::Boolean}{$json_boolean_class}g;
     same( $dump= $o-&gt;Data(\%hash)-&gt;Out, template( $expect, expected_dot =&gt; $expected_dot ), "", $o);
 }
-- 
2.1.2

</pre></body></html>