1package Search::Elasticsearch::Serializer::JSON::PP;
2$Search::Elasticsearch::Serializer::JSON::PP::VERSION = '6.00';
3use Moo;
4use JSON::PP;
5
6has 'JSON' => ( is => 'ro', default => sub { JSON::PP->new->utf8(1) } );
7
8with 'Search::Elasticsearch::Role::Serializer::JSON';
9
101;
11
12# ABSTRACT: A JSON Serializer using JSON::PP
13
14__END__
15
16=pod
17
18=encoding UTF-8
19
20=head1 NAME
21
22Search::Elasticsearch::Serializer::JSON::PP - A JSON Serializer using JSON::PP
23
24=head1 VERSION
25
26version 6.00
27
28=head1 SYNOPSIS
29
30    $e = Search::Elasticsearch(
31        serializer => 'JSON::PP'
32    );
33
34=head1 DESCRIPTION
35
36While the default serializer, L<Search::Elasticsearch::Serializer::JSON>,
37tries to choose the appropriate JSON backend, this module allows you to
38choose the L<JSON::PP> backend specifically.
39
40B<NOTE:> You should really install and use either L<JSON::XS> or
41L<Cpanel::JSON::XS> as they are much much faster than L<JSON::PP>.
42
43This class does L<Search::Elasticsearch::Role::Serializer::JSON>.
44
45=head1 SEE ALSO
46
47=over
48
49=item * L<Search::Elasticsearch::Serializer::JSON>
50
51=item * L<Search::Elasticsearch::Serializer::JSON::XS>
52
53=item * L<Search::Elasticsearch::Serializer::JSON::Cpanel>
54
55=back
56
57=head1 AUTHOR
58
59Clinton Gormley <drtech@cpan.org>
60
61=head1 COPYRIGHT AND LICENSE
62
63This software is Copyright (c) 2017 by Elasticsearch BV.
64
65This is free software, licensed under:
66
67  The Apache License, Version 2.0, January 2004
68
69=cut
70