… | |
… | |
378 | $x += 0; # numify it, ensuring it will be dumped as a number |
378 | $x += 0; # numify it, ensuring it will be dumped as a number |
379 | $x *= 1; # same thing, the choise is yours. |
379 | $x *= 1; # same thing, the choise is yours. |
380 | |
380 | |
381 | You can not currently output JSON booleans or force the type in other, |
381 | You can not currently output JSON booleans or force the type in other, |
382 | less obscure, ways. Tell me if you need this capability. |
382 | less obscure, ways. Tell me if you need this capability. |
|
|
383 | |
|
|
384 | =item circular data structures |
|
|
385 | |
|
|
386 | Those will be encoded until memory or stackspace runs out. |
383 | |
387 | |
384 | =back |
388 | =back |
385 | |
389 | |
386 | =head1 COMPARISON |
390 | =head1 COMPARISON |
387 | |
391 | |
… | |
… | |
511 | every other module in the decoding case. |
515 | every other module in the decoding case. |
512 | |
516 | |
513 | Last example is an almost 8MB large hash with many large binary values |
517 | Last example is an almost 8MB large hash with many large binary values |
514 | (PNG files), resulting in a lot of escaping: |
518 | (PNG files), resulting in a lot of escaping: |
515 | |
519 | |
|
|
520 | =head1 RESOURCE LIMITS |
|
|
521 | |
|
|
522 | JSON::XS does not impose any limits on the size of JSON texts or Perl |
|
|
523 | values they represent - if your machine cna handle it, JSON::XS will |
|
|
524 | encode or decode it. Future versions might optionally impose structure |
|
|
525 | depth and memory use resource limits. |
|
|
526 | |
516 | =head1 BUGS |
527 | =head1 BUGS |
517 | |
528 | |
518 | While the goal of this module is to be correct, that unfortunately does |
529 | While the goal of this module is to be correct, that unfortunately does |
519 | not mean its bug-free, only that I think its design is bug-free. It is |
530 | not mean its bug-free, only that I think its design is bug-free. It is |
520 | still very young and not well-tested. If you keep reporting bugs they will |
531 | still very young and not well-tested. If you keep reporting bugs they will |