Name : perl-JSON-MaybeXS
| |
Version : 1.003005
| Vendor : openSUSE
|
Release : 5.1
| Date : 2017-03-17 19:21:17
|
Group : Development/Libraries/Perl
| Source RPM : perl-JSON-MaybeXS-1.003005-5.1.src.rpm
|
Size : 0.02 MB
| |
Packager : http://bugs_opensuse_org
| |
Summary : Use L< Cpanel::JSON::XS> with a fallback to L< JSON::XS> and L< JSON::PP>
|
Description :
This module first checks to see if either the Cpanel::JSON::XS manpage or the JSON::XS manpage is already loaded, in which case it uses that module. Otherwise it tries to load the Cpanel::JSON::XS manpage, then the JSON::XS manpage, then the JSON::PP manpage in order, and either uses the first module it finds or throws an error.
It then exports the \'encode_json\' and \'decode_json\' functions from the loaded module, along with a \'JSON\' constant that returns the class name for calling \'new\' on.
If you\'re writing fresh code rather than replacing JSON usage, you might want to pass options as constructor args rather than calling mutators, so we provide our own \'new\' method that supports that.
|
RPM found in directory: /vol/rzm3/linux-opensuse/distribution/leap/42.3/repo/oss/suse/noarch |