| 1 | package Search::Elasticsearch::Serializer::JSON::XS; | ||
| 2 | 3 | $Search::Elasticsearch::Serializer::JSON::XS::VERSION = '6.80'; | |
| 3 | 3 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use JSON::XS 2.26; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 3 | ▶ | has 'JSON' => ( is => 'ro', default => sub { JSON::XS->new->utf8(1) } ); |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 3 | with 'Search::Elasticsearch::Role::Serializer::JSON'; | |
| 9 | |||
| 10 | 3 | 1; | |
| 11 | |||
| 12 | =pod | ||
| 13 | |||
| 14 | =encoding UTF-8 | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | Search::Elasticsearch::Serializer::JSON::XS - A JSON Serializer using JSON::XS | ||
| 19 | |||
| 20 | =head1 VERSION | ||
| 21 | |||
| 22 | version 6.80 | ||
| 23 | |||
| 24 | =head1 SYNOPSIS | ||
| 25 | |||
| 26 | $e = Search::Elasticsearch( | ||
| 27 | serializer => 'JSON::XS' | ||
| 28 | ); | ||
| 29 | |||
| 30 | =head1 DESCRIPTION | ||
| 31 | |||
| 32 | While the default serializer, L<Search::Elasticsearch::Serializer::JSON>, | ||
| 33 | tries to choose the appropriate JSON backend, this module allows you to | ||
| 34 | choose the L<JSON::XS> backend specifically. | ||
| 35 | |||
| 36 | This class does L<Search::Elasticsearch::Role::Serializer::JSON>. | ||
| 37 | |||
| 38 | =head1 SEE ALSO | ||
| 39 | |||
| 40 | =over | ||
| 41 | |||
| 42 | =item * L<Search::Elasticsearch::Serializer::JSON> | ||
| 43 | |||
| 44 | =item * L<Search::Elasticsearch::Serializer::JSON::Cpanel> | ||
| 45 | |||
| 46 | =item * L<Search::Elasticsearch::Serializer::JSON::PP> | ||
| 47 | |||
| 48 | =back | ||
| 49 | |||
| 50 | =head1 AUTHOR | ||
| 51 | |||
| 52 | Enrico Zimuel <enrico.zimuel@elastic.co> | ||
| 53 | |||
| 54 | =head1 COPYRIGHT AND LICENSE | ||
| 55 | |||
| 56 | This software is Copyright (c) 2020 by Elasticsearch BV. | ||
| 57 | |||
| 58 | This is free software, licensed under: | ||
| 59 | |||
| 60 | The Apache License, Version 2.0, January 2004 | ||
| 61 | |||
| 62 | =cut | ||
| 63 | |||
| 64 | __END__ | ||