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.13 by root, Fri Mar 23 18:37:30 2007 UTC vs.
Revision 1.14 by root, Fri Mar 23 19:02:02 2007 UTC

312=over 4 312=over 4
313 313
314=item object 314=item object
315 315
316A JSON object becomes a reference to a hash in Perl. No ordering of object 316A JSON object becomes a reference to a hash in Perl. No ordering of object
317keys is preserved. 317keys is preserved (JSON does not preserver object key ordering itself).
318 318
319=item array 319=item array
320 320
321A JSON array becomes a reference to an array in Perl. 321A JSON array becomes a reference to an array in Perl.
322 322
358=item hash references 358=item hash references
359 359
360Perl hash references become JSON objects. As there is no inherent ordering 360Perl hash references become JSON objects. As there is no inherent ordering
361in hash keys, they will usually be encoded in a pseudo-random order that 361in hash keys, they will usually be encoded in a pseudo-random order that
362can change between runs of the same program but stays generally the same 362can change between runs of the same program but stays generally the same
363within the single run of a program. JSON::XS can optionally sort the hash 363within a single run of a program. JSON::XS can optionally sort the hash
364keys (determined by the I<canonical> flag), so the same datastructure 364keys (determined by the I<canonical> flag), so the same datastructure
365will serialise to the same JSON text (given same settings and version of 365will serialise to the same JSON text (given same settings and version of
366JSON::XS), but this incurs a runtime overhead. 366JSON::XS), but this incurs a runtime overhead.
367 367
368=item array references 368=item array references

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines