Skip to content

Instantly share code, notes, and snippets.

@clkao
Created February 7, 2010 04:30
Show Gist options
  • Save clkao/297217 to your computer and use it in GitHub Desktop.
Save clkao/297217 to your computer and use it in GitHub Desktop.
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