Search::Elasticsearch::Serializer::JSON - The default JSON Serializer, using JSON::MaybeXS
version 8.00
$e = Search::Elasticsearch( # serializer => 'JSON' );
This default Serializer class chooses between:
Cpanel::JSON::XS
JSON::XS
JSON::PP
First it checks if either Cpanel::JSON::XS or JSON::XS is already loaded and, if so, uses the appropriate backend. Otherwise it tries to load Cpanel::JSON::XS, then JSON::XS and finally JSON::PP.
If you would prefer to specify a particular JSON backend, then you can do so by using one of these modules:
Search::Elasticsearch::Serializer::JSON::Cpanel
Search::Elasticsearch::Serializer::JSON::XS
Search::Elasticsearch::Serializer::JSON::PP
See their documentation for details.
Enrico Zimuel <enrico.zimuel@elastic.co>
This software is Copyright (c) 2022 by Elasticsearch BV.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install Search::Elasticsearch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Search::Elasticsearch
CPAN shell
perl -MCPAN -e shell install Search::Elasticsearch
For more information on module installation, please visit the detailed CPAN module installation guide.