This file is indexed.

/usr/share/perl5/CHI/Serializer/JSON.pm is in libchi-perl 0.50-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Default key serializer class, so that we don't have to depend on Data::Serializer.
# Recommend Data::Serializer for other serializers, rather than reinventing the wheel.
#
package CHI::Serializer::JSON;
BEGIN {
  $CHI::Serializer::JSON::VERSION = '0.50';
}
use Moose;
use JSON;
use strict;
use warnings;

__PACKAGE__->meta->make_immutable;

my $json_version = JSON->VERSION;
my $json = $json_version < 2 ? JSON->new : JSON->new->utf8->canonical;

sub serialize {
    return $json_version < 2
      ? $json->objToJson( $_[1] )
      : $json->encode( $_[1] );
}

sub deserialize {
    return $json_version < 2
      ? $json->jsonToObj( $_[1] )
      : $json->decode( $_[1] );
}

1;