Created
February 7, 2010 04:30
-
-
Save clkao/297217 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/Jifty/JSON.pm b/lib/Jifty/JSON.pm | |
index 711b0b3..35d020c 100644 | |
--- a/lib/Jifty/JSON.pm | |
+++ b/lib/Jifty/JSON.pm | |
@@ -63,7 +63,7 @@ sub decode_json { | |
} | |
sub encode_json { | |
- JSON::to_json( $_[0], { utf8 => 1, allow_nonref => 1, %{$_[1] || {}} } ); | |
+ JSON::to_json( $_[0], { utf8 => 1, allow_nonref => 1, %{$_[1] || {}}, allow_blessed => 1 } ); | |
} | |
=head2 DEPRECATED jsonToObj JSON, [ARGUMENTS] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment