Use Cpanel::JSON::XS with a fallback to JSON::PP
JSON::MaybeXS tries to load Cpanel::JSON::XS, and if that fails instead tries to load JSON::PP. If neither is available, an exception will be thrown. 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.
$
pkg install p5-JSON-MaybeXSOrigin
converters/p5-JSON-MaybeXS
Size
40.4KiB
License
ART10, GPLv1+
Maintainer
sunpoet@FreeBSD.org
Dependencies
2 packages
Required by
56 packages
Dependencies (2)
Required By (56)
p5-Avrop5-CHIp5-Catalyst-Action-RESTp5-Catalyst-Runtimep5-Crypt-LEp5-DBIx-Class-InflateColumn-Serializerp5-DBIx-Class-Migrationp5-Dancer2p5-Dancer2-Session-DBICp5-Data-Sah-DefaultValuep5-Data-Unixishp5-Devel-NYTProfp5-Dist-Zillap5-Geo-Coder-OpenCagep5-GeoIP2p5-GraphQLp5-HTML-FormFup5-HTML-FormHandlerp5-HTTP-Entity-Parserp5-Interchange6-Schemap5-JSON-Pathp5-Language-Exprp5-Log-Any-Appp5-Log-Log4perl-Layout-JSONp5-McBain-WithPSGIp5-MetaCPAN-Clientp5-Module-CheckVersionp5-Mojo-UserAgent-Mockablep5-MooseX-Storagep5-Net-GitHub+ 26 more