Name : perl-JSON-Tiny
| |
Version : 0.58
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.1.1
| Date : 2023-07-20 15:31:46
|
Group : Development/Libraries/Perl
| Source RPM : perl-JSON-Tiny-0.58-lp155.1.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : Minimalistic JSON. No dependencies
|
Description :
JSON::Tiny is a minimalistic standalone adaptation of Mojo::JSON, from the Mojolicious framework. It is a single-source-file module with under 300 lines of code and core-only dependencies.
Features include transparent Unicode support, speed, small memory footprint, and a minimal code base ideal for bundling or inlining. Along with Mojo::JSON, it is among the fastest pure-Perl implementations of at http://tools.ietf.org/html/rfc7159.
JSON::Tiny supports normal Perl data types like scalar, array reference, hash reference, and will try to call the TO_JSON method on blessed references, or stringify them if it doesn\'t exist.
Differentiating between strings and numbers in Perl is hard; depending on how it has been used, a scalar can be both at the same time. The string value has a higher precedence unless both representations are equivalent.
[1, -2, 3] -> [1, -2, 3] {\"foo\": \"bar\"} -> {foo => \'bar\'}
Literal names will be translated to and from JSON::Tiny constants or a similar native Perl value.
true -> JSON::Tiny->true false -> JSON::Tiny->false null -> undef
Scalar references will be used to generate Booleans, based on if their values are true or false.
\\1 => true \\0 => false
The two Unicode whitespace characters \'u2028\' and \'u2029\' will always be escaped to make JSONP easier, and the character \'/\' to prevent XSS attacks.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-J/15.5/noarch |