… | |
… | |
86 | package JSON::XS; |
86 | package JSON::XS; |
87 | |
87 | |
88 | use strict; |
88 | use strict; |
89 | |
89 | |
90 | BEGIN { |
90 | BEGIN { |
91 | our $VERSION = '1.1'; |
91 | our $VERSION = '1.12'; |
92 | our @ISA = qw(Exporter); |
92 | our @ISA = qw(Exporter); |
93 | |
93 | |
94 | our @EXPORT = qw(to_json from_json objToJson jsonToObj); |
94 | our @EXPORT = qw(to_json from_json objToJson jsonToObj); |
95 | require Exporter; |
95 | require Exporter; |
96 | |
96 | |
… | |
… | |
154 | |
154 | |
155 | If C<$enable> is true (or missing), then the C<encode> method will not |
155 | If C<$enable> is true (or missing), then the C<encode> method will not |
156 | generate characters outside the code range C<0..127> (which is ASCII). Any |
156 | generate characters outside the code range C<0..127> (which is ASCII). Any |
157 | unicode characters outside that range will be escaped using either a |
157 | unicode characters outside that range will be escaped using either a |
158 | single \uXXXX (BMP characters) or a double \uHHHH\uLLLLL escape sequence, |
158 | single \uXXXX (BMP characters) or a double \uHHHH\uLLLLL escape sequence, |
159 | as per RFC4627. |
159 | as per RFC4627. The resulting encoded JSON text can be treated as a native |
|
|
160 | unicode string, an ascii-encoded, latin1-encoded or UTF-8 encoded string, |
|
|
161 | or any other superset of ASCII. |
160 | |
162 | |
161 | If C<$enable> is false, then the C<encode> method will not escape Unicode |
163 | If C<$enable> is false, then the C<encode> method will not escape Unicode |
162 | characters unless required by the JSON syntax. This results in a faster |
164 | characters unless required by the JSON syntax. This results in a faster |
163 | and more compact format. |
165 | and more compact format. |
164 | |
166 | |
… | |
… | |
640 | conservative, the default nesting limit is set to 512. If your process |
642 | conservative, the default nesting limit is set to 512. If your process |
641 | has a smaller stack, you should adjust this setting accordingly with the |
643 | has a smaller stack, you should adjust this setting accordingly with the |
642 | C<max_depth> method. |
644 | C<max_depth> method. |
643 | |
645 | |
644 | And last but least, something else could bomb you that I forgot to think |
646 | And last but least, something else could bomb you that I forgot to think |
645 | of. In that case, you get to keep the pieces. I am alway sopen for hints, |
647 | of. In that case, you get to keep the pieces. I am always open for hints, |
646 | though... |
648 | though... |
647 | |
649 | |
648 | |
650 | |
649 | =head1 BUGS |
651 | =head1 BUGS |
650 | |
652 | |