Elasticsearch/Serializer/JSON/XS.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 15 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« Elasticsearch/Serializer/JSON/PP.pm ↑ Summary
1 # Licensed to Elasticsearch B.V under one or more agreements.
2 # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3 # See the LICENSE file in the project root for more information
4  
5 package Search::Elasticsearch::Serializer::JSON::XS;
6 3 $Search::Elasticsearch::Serializer::JSON::XS::VERSION = '7.30_1'; # TRIAL
7  
8 3 $Search::Elasticsearch::Serializer::JSON::XS::VERSION = '7.301';
9 3 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 ▶use JSON::XS 2.26;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 3 ▶has 'JSON' => ( is => 'ro', default => sub { JSON::XS->new->utf8(1) } );
Subroutine __ANON__: called CC=1 SCAR=0.0
13  
14 3 with 'Search::Elasticsearch::Role::Serializer::JSON';
15  
16 3 1;
17  
18 =pod
19  
20 =encoding UTF-8
21  
22 =head1 NAME
23  
24 Search::Elasticsearch::Serializer::JSON::XS - A JSON Serializer using JSON::XS
25  
26 =head1 VERSION
27  
28 version 7.30_1
29  
30 =head1 SYNOPSIS
31  
32 $e = Search::Elasticsearch(
33 serializer => 'JSON::XS'
34 );
35  
36 =head1 DESCRIPTION
37  
38 While the default serializer, L<Search::Elasticsearch::Serializer::JSON>,
39 tries to choose the appropriate JSON backend, this module allows you to
40 choose the L<JSON::XS> backend specifically.
41  
42 This class does L<Search::Elasticsearch::Role::Serializer::JSON>.
43  
44 =head1 SEE ALSO
45  
46 =over
47  
48 =item * L<Search::Elasticsearch::Serializer::JSON>
49  
50 =item * L<Search::Elasticsearch::Serializer::JSON::Cpanel>
51  
52 =item * L<Search::Elasticsearch::Serializer::JSON::PP>
53  
54 =back
55  
56 =head1 AUTHOR
57  
58 Enrico Zimuel <enrico.zimuel@elastic.co>
59  
60 =head1 COPYRIGHT AND LICENSE
61  
62 This software is Copyright (c) 2020 by Elasticsearch BV.
63  
64 This is free software, licensed under:
65  
66 The Apache License, Version 2.0, January 2004
67  
68 =cut
69  
70 __END__
« Elasticsearch/Serializer/JSON/PP.pm ↑ Summary