added special case to avoid wrapping boolean objects
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Sun, 9 Mar 2008 01:16:48 +0000 (01:16 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Sun, 9 Mar 2008 01:16:48 +0000 (01:16 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1266 9efc2488-bf62-4759-914b-345cdb29e865

src/perlmods/OpenSRF/Utils/JSON.pm

index 65853e4..bfefb86 100644 (file)
@@ -92,6 +92,8 @@ sub perl2JSONObject {
        my $ref = ref($obj);
 
        return $obj unless $ref;
+
+    return $obj if $ref eq 'JSON::XS::Boolean';
        my $newobj;
 
     if(UNIVERSAL::isa($obj, 'HASH')) {