<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,6 @@
 Revision history for JSON-Any
         * Update JSON::XS boolean support; it provides true/false methods (semifor)
+        * Added a workaround for handlers that fail to decode bare true/false values (semifor)
 
 1.20    2009-07-02
         * Re-work things so that deprecated modules just warn but aren't actually excluded (perigrin)</diff>
      <filename>Changes</filename>
    </modified>
    <modified>
      <diff>@@ -512,6 +512,11 @@ sub jsonToObj {
     my $obj  = shift;
     croak 'must provide json to convert' unless defined $obj;
 
+    # some handlers can't parse single booleans (I'm looking at you DWIW)
+    if ( $obj =~ /^(true|false)$/ ) {
+        return $self-&gt;$1;
+    }
+
     if ( ref $self ) {
         my $method;
         unless ( ref $self-&gt;[DECODER] ) {</diff>
      <filename>lib/JSON/Any.pm</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>de45f0a3de6746e6094bbf519326d6aa6b8e34cc</id>
    </parent>
  </parents>
  <author>
    <name>Marc Mims</name>
    <email>marc@questright.com</email>
  </author>
  <url>http://github.com/semifor/json-any/commit/f68c3882ee03473d78e7f33ab19edde2f8550cdf</url>
  <id>f68c3882ee03473d78e7f33ab19edde2f8550cdf</id>
  <committed-date>2009-07-03T09:39:01-07:00</committed-date>
  <authored-date>2009-07-03T09:02:00-07:00</authored-date>
  <message>Added a workaround for handlers that don't parse bare true/false values</message>
  <tree>c29262692b2f25c11861754cbd45a6cb9cae6807</tree>
  <committer>
    <name>Marc Mims</name>
    <email>marc@questright.com</email>
  </committer>
</commit>
