| 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; | ||
| 6 | 46 | $Search::Elasticsearch::Serializer::JSON::VERSION = '7.30_1'; # TRIAL | |
| 7 | |||
| 8 | 46 | $Search::Elasticsearch::Serializer::JSON::VERSION = '7.301'; | |
| 9 | 46 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 46 | ▶ | use JSON::MaybeXS 1.002002 (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 91 | ▶ | has 'JSON' => ( is => 'ro', default => sub { JSON::MaybeXS->new->utf8(1) } ); |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 46 | with 'Search::Elasticsearch::Role::Serializer::JSON'; | |
| 15 | 46 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | |||
| 17 | 46 | 1; | |
| 18 | |||
| 19 | # ABSTRACT: The default JSON Serializer, using JSON::MaybeXS | ||
| 20 | |||
| 21 | __END__ | ||