From 16eb6dbcfaae090d9bf66bae9a637842ea4af3a4 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 15 Jul 2005 20:49:57 +0000 Subject: [PATCH] moved back to nulls git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@400 9efc2488-bf62-4759-914b-345cdb29e865 --- src/perlmods/JSON.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/perlmods/JSON.pm b/src/perlmods/JSON.pm index 9d6d8b4..ece6bb0 100644 --- a/src/perlmods/JSON.pm +++ b/src/perlmods/JSON.pm @@ -176,8 +176,8 @@ sub perl2JSON { my $output = ''; if (!defined($perl)) { - $output = '' unless $strict; - $output = 'null' if $strict; + $output = '' if $strict; + $output = 'null' unless $strict; } elsif (ref($perl) and ref($perl) =~ /^JSON/) { $output .= $perl; } elsif ( ref($perl) && exists($_class_map{classes}{ref($perl)}) ) { -- 2.11.0