ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/JSON-XS/XS.pm
(Generate patch)

Comparing JSON-XS/XS.pm (file contents):
Revision 1.73 by root, Sun Nov 25 19:36:54 2007 UTC vs.
Revision 1.74 by root, Wed Nov 28 13:57:15 2007 UTC

84 84
85package JSON::XS; 85package JSON::XS;
86 86
87use strict; 87use strict;
88 88
89our $VERSION = '1.6'; 89our $VERSION = '2.0';
90our @ISA = qw(Exporter); 90our @ISA = qw(Exporter);
91 91
92our @EXPORT = qw(to_json from_json); 92our @EXPORT = qw(to_json from_json);
93 93
94use Exporter; 94use Exporter;
276 276
277 use Encode; 277 use Encode;
278 $object = JSON::XS->new->decode (decode "UTF-32LE", $jsontext); 278 $object = JSON::XS->new->decode (decode "UTF-32LE", $jsontext);
279 279
280=item $json = $json->pretty ([$enable]) 280=item $json = $json->pretty ([$enable])
281
282=item $enabled = $json->get_pretty
283 281
284This enables (or disables) all of the C<indent>, C<space_before> and 282This enables (or disables) all of the C<indent>, C<space_before> and
285C<space_after> (and in the future possibly more) flags in one call to 283C<space_after> (and in the future possibly more) flags in one call to
286generate the most readable (or most compact) form possible. 284generate the most readable (or most compact) form possible.
287 285

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines