[Jifty-commit] r6012 - in jifty/trunk: lib/Jifty
Jifty commits
jifty-commit at lists.jifty.org
Mon Nov 17 19:47:52 EST 2008
Author: sartak
Date: Mon Nov 17 19:47:52 2008
New Revision: 6012
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/JSON.pm
Log:
r75694 at onn: sartak | 2008-11-17 19:47:30 -0500
Let Jifty::JSON export objToJson and jsonToObj if the user requests it
Modified: jifty/trunk/lib/Jifty/JSON.pm
==============================================================================
--- jifty/trunk/lib/Jifty/JSON.pm (original)
+++ jifty/trunk/lib/Jifty/JSON.pm Mon Nov 17 19:47:52 2008
@@ -3,13 +3,16 @@
package Jifty::JSON;
+use base 'Exporter';
+our @EXPORT_OK = qw/jsonToObj objToJson/;
+
=head1 NAME
Jifty::JSON -- Wrapper around L<JSON>
=head1 SYNOPSIS
- use Jifty::JSON;
+ use Jifty::JSON qw/jsonToObj objToJson/;
# Even though you might be using JSON::Syck, use the original JSON names
my $obj = jsonToObj(q! { 'x': 1, 'y': 2, 'z': 3 } !);
More information about the Jifty-commit
mailing list