Group
Extension

Matches 35358

HV-Monitor ( V/VV/VVELOX/HV-Monitor-0.1.0.tar.gz, VVELOX, 2024; MetaCPAN )
HV-Monitor/lib/HV/Monitor/Backends/Libvirt.pm ( view source; MetaCPAN )
package HV::Monitor::Backends::Libvirt;

use 5.006;
use strict;
use warnings;
use JSON;
use File::Slurp qw(read_file);

=head1 NAME

HV::Monitor::Backends::Libvirt - Libvirt support for HV::Monitor

=
) ) {
				eval {
					my $json = decode_json( $net_line[0] );
					$nic_info->{mac} = $json->{mac};
					$json->{netdev} =~ s/^[a-zA-Z]+//;
					if ( defined( $net_list[ $json->{netdev} ] ) ) {
						
$json->{netdev} ] } ) ) {
							$nic_info->{parent} = $net_cache->{ $net_list[ $json->{netdev} ] };
						}
					}
				}
			}
			else {
				# looks like we did not find one that appears to be a JSON 
Koha-Contrib-ARK ( F/FR/FREDERICD/Koha-Contrib-ARK-1.1.2.tar.gz, FREDERICD, 2024; MetaCPAN )
Koha-Contrib-ARK/lib/Koha/Contrib/ARK.pm ( view source; MetaCPAN )
ABSTRACT: ARK Management
$Koha::Contrib::ARK::VERSION = '1.1.2';
use Moose;
use Modern::Perl;
use JSON;
use DateTime;
use Try::Tiny;
use Koha::Contrib::ARK::Reader;
use Koha::Contrib::ARK::Writer;
use
cord} = $record;
    $current->{biblionumber} = $biblio->biblionumber;
    $current->{before} = tojson($record) if $self->debug;
    $current->{ark} = $self->build_ark($biblio->biblionumber, $record);
 dump_explain {
    my $self = shift;

    open my $fh, '>:encoding(utf8)', 'koha-ark.json';
    print $fh to_json($self->explain, { pretty => 1 });
}


sub BUILD {
    my $self = shift;

    my $tz =
Business-PAYONE ( A/AR/ARTHAS/Business-PAYONE-0.4.0.tar.gz, ARTHAS, 2024; MetaCPAN )
Business-PAYONE/lib/Business/PAYONE.pm ( view source; MetaCPAN )
      json => $reqargs
        )->result;
        confess $res->message .': ' . dump($res->json) if !$res->is_success;

        # confess Data::Dump::dump($res->json);

        return $res->json;
    
        confess $res->message .': ' . dump($res->json) if !$res->is_success;

        # confess Data::Dump::dump($res->json);

        return $res->json;
    }

    sub _create_autorization($self, $ar
ckouts'.$args->{url_extra};
        my $h_content_type = $request_method eq 'POST' ? 'application/json; charset=utf-8' : '';
        my $h_date = DateTime::Format::HTTP->format_datetime($now);
       
XML-Compile ( M/MA/MARKOV/XML-Compile-1.64.tar.gz, MARKOV, 2024; MetaCPAN )
XML-Compile/lib/XML/Compile/Translate.pm ( view source; MetaCPAN )
$self->{sloppy_integers}
       , sloppy_floats   => $self->{sloppy_floats}
       , json_friendly   => $self->{json_friendly}
       );

    if($internal)
    {   my $builtin = $self->makeBuiltin($fu
$self->{sloppy_integers}
       , sloppy_floats   => $self->{sloppy_floats}
       , json_friendly   => $self->{json_friendly}
       );

    if($def)
    {   # Is built-in
        my $st = $self->mak
XML-Compile ( M/MA/MARKOV/XML-Compile-1.64.tar.gz, MARKOV, 2024; MetaCPAN )
XML-Compile/lib/XML/Compile/Schema.pod ( view source; MetaCPAN )
     <false>
  include_namespaces              <true>
  interpret_nillable_as_optional  <false>
  json_friendly                   <false>
  key_rewrite                     []
  mixed_elements         
item json_friendly => BOOLEAN

[1.55] When enabled, booleans will be blessed in Types::Serialiser
booleans.  Floats get nummified.  Together, this will make the output
of the reader usable as JSON wit
Sagan-Monitoring ( V/VV/VVELOX/Sagan-Monitoring-1.3.0.tar.gz, VVELOX, 2024; MetaCPAN )
Sagan-Monitoring/lib/Sagan/Monitoring.pm ( view source; MetaCPAN )
rict;
use warnings;
use JSON;
use File::Path qw(make_path);
use File::ReadBackwards;
use Carp;
use File::Slurp;
use Time::Piece;

=head1 NAME

Sagan::Monitoring - LibreNMS JSON SNMP extend and Nagios 
=> 1,
        files=>{
               'ids'=>'/var/log/sagan/alert-ids.json',
               'foo'=>'/var/log/sagan/alert-foo.json',
               },
    };

    my $sm=Sagan::Monitoring->new( $args 
h ref. The keys are documented as below.

The only must have is 'files'.

This assumes that stats-json.subtract_old_values is set to 'true'
for Sagan.

    - drop_percent_warn :: Drop percent warning 
App-MHFS ( G/GA/GAHAYES/App-MHFS-v0.6.0.tar.gz, GAHAYES, 2024; MetaCPAN )
App-MHFS/lib/App/MHFS.pm ( view source; MetaCPAN )
RL',
            # text
            'html' => 'text/html; charset=utf-8',
            'json' => 'application/json',
            'js'   => 'application/javascript',
            'txt' => 'text/plain',
 
  if( ! (eval "use JSON; 1")) {
            eval "use JSON::PP; 1" or die "No implementation of JSON available";
            warn __PACKAGE__.": Using PurePerl version of JSON (JSON::PP)";
        }
 


    # expects perl data structure
    sub SendAsJSON {
        my ($self, $obj, $options) = @_;
        @_ = ($self, 'application/json', encode_json($obj), $options);
        goto &SendBytes;
    }
Alien-Build ( P/PL/PLICEASE/Alien-Build-2.84.tar.gz, PLICEASE, 2024; MetaCPAN )
Alien-Build/lib/Alien/Build/Plugin/Core/Gather.pm ( view source; MetaCPAN )
 );
use Path::Tiny ();
use File::chdir;
use Alien::Build::Util qw( _mirror _destdir_prefix );
use JSON::PP ();

# ABSTRACT: Core gather plugin
our $VERSION = '2.84'; # VERSION


sub init
{
  my($self,
age->child('_alien')->mkpath;

      # drop a alien.json file for the runtime properties
      $stage->child('_alien/alien.json')->spew(
        JSON::PP->new->pretty->canonical(1)->ascii->encode($bui
Health-SHC ( T/TI/TIMLEGGE/Health-SHC-0.006.tar.gz, TIMLEGGE, 2024; MetaCPAN )
Health-SHC/lib/Health/SHC/Validate.pm ( view source; MetaCPAN )
inflate /;
#use MIME::Base64 qw/ decode_base64url /;
use Crypt::JWT qw(decode_jwt);
use JSON::Parse qw(read_json);
use File::ShareDir qw(dist_file);

=head1 NAME

Health::SHC::Validate - Validate the 
();
    my $data = $shc_valid->get_valid_data($qr, $keys_json);

=cut

=head1 DESCRIPTION

This perl module validates the signature of the JSON Web Token containing the
Smart Health Card data.

=cut

=head1 PREREQUISITES

=over

=item * L<Crypt::JWT>

=item * L<JSON::Parse>

=back

=cut

=head1 COPYRIGHT

The following copyright notice applies to all the files provided in
this distribution, includ
Health-SHC ( T/TI/TIMLEGGE/Health-SHC-0.006.tar.gz, TIMLEGGE, 2024; MetaCPAN )
Health-SHC/lib/Health/SHC.pm ( view source; MetaCPAN )
ur own keys to validate - you may trust them
    my $data = $shc_valid->get_valid_data($qr, $keys_json);

    use Health::SHC;
    my $sh = Health::SHC->new();
    my @patients = $sh->get_patients($da
Territories
    * Yukon
    * New Brunswick/Nouveau-Brunswick
    * Japan

The keys in share/keys.json (and supported regions) are based on the keys
included with https://github.com/obrassard/shc-extr
HealthCheck-Diagnostic-WebRequest ( G/GS/GSG/HealthCheck-Diagnostic-WebRequest-v1.4.4.tar.gz, GSG, 2024; MetaCPAN )
HealthCheck-Diagnostic-WebRequest/lib/HealthCheck/Diagnostic/WebRequest.pm ( view source; MetaCPAN )
 me something',
    };

    my $encoded_data = encode_utf8(encode_json($data));
    my $header = [ 'Content-Type' => 'application/json; charset=UTF-8' ];
    my $url = 'https://dev.payment-express.net
File-SharedVar ( C/CD/CDRAKE/File-SharedVar-1.00.tar.gz, CDRAKE, 2024; MetaCPAN )
File-SharedVar/lib/File/SharedVar.pm ( view source; MetaCPAN )
t environments.

It allows you to read, update, and reset shared variables stored in a file (uses JSON format), making it easy to coordinate between multiple processes.

This module was written to ser
 = 0;

eval {
  require JSON::XS;
  JSON::XS->import; 1;
} or do {
  require JSON;
  JSON->import;
};

#my $json_text = encode_json($data);
#my $decoded_data = decode_json($json_text);

=head1 METHODS
 my $json_text = undef; do { local $/; $json_text=readline($self->{fh}) };
  #my $json_text = undef; do { local $/; my $fh=$self->{fh}; <$fh> };
  &dbg( "$$ post-lock d=$json_text" );
  #my $json_text
HealthCheck-Diagnostic-RemoteHealth ( G/GS/GSG/HealthCheck-Diagnostic-RemoteHealth-v0.1.2.tar.gz, GSG, 2024; MetaCPAN )
HealthCheck-Diagnostic-RemoteHealth/lib/HealthCheck/Diagnostic/RemoteHealth.pm ( view source; MetaCPAN )
c::RemoteHealth;
use parent 'HealthCheck::Diagnostic::WebRequest';
use strict;
use warnings;

use JSON;

# ABSTRACT: Get results from an HTTP HealthCheck
use version;
our $VERSION = 'v0.1.2'; # VERSIO
P status check if OK,
    # since it's implied to be successful
    # if it retrieves the encoded JSON object.
    if (($result->{results}->[0]->{status} || '') eq 'OK' ) {
        shift @{ $result->{
 JSON seems unnecessary, so this has been
# repurposed to return the decoded JSON object.
sub check_content {
    my ($self, $response) = @_;

    local $@;
    my $remote_result = eval { decode_json(
Full ( T/TE/TEAM/Full-1.004.tar.gz, TEAM, 2024; MetaCPAN )
Full/lib/Full/Pragmata.pm ( view source; MetaCPAN )
* provides L<JSON::MaybeUTF8/encode_json_text>, L<JSON::MaybeUTF8/encode_json_utf8>,
L<JSON::MaybeUTF8/decode_json_text>, L<JSON::MaybeUTF8/decode_json_utf8>, L<JSON::MaybeUTF8/format_json_text>

=ite
se Scalar::Util;
use List::Util;
use List::Keywords;
use Future::Utils;
use Module::Load ();

use JSON::MaybeUTF8;
use Unicode::UTF8;

use Log::Any qw($log);
use Metrics::Any;

use constant USE_OPENTE
 '::' . $_} = JSON::MaybeUTF8->can($_) for qw(
            encode_json_text
            encode_json_utf8
            decode_json_text
            decode_json_utf8
            format_json_text
        
OSLV-Monitor ( V/VV/VVELOX/OSLV-Monitor-1.0.2.tar.gz, VVELOX, 2024; MetaCPAN )
OSLV-Monitor/lib/OSLV/Monitor/Backends/FreeBSD.pm ( view source; MetaCPAN )
package OSLV::Monitor::Backends::FreeBSD;

use 5.006;
use strict;
use warnings;
use JSON;
use Clone 'clone';
use File::Slurp;
use List::Util   qw( uniq );
use Scalar::Util qw(looks_like_number);

=hea
       $return_hash_ref=$backend->run;
    }

The stats names match those produced by "ps --libxo json".

=head2 METHODS

=head2 new

Initiates the backend object.

    my $backend=OSLV::MOnitor::Back
 - base_dir :: Path to use for the base dir, where the proc
            cache, freebsd_proc_cache.json, is is created.
        Default :: /var/cache/oslv_monitor

    - obj :: The OSLVM::Monitor objec
Map-Tube-Milan ( M/MF/MFONTANI/Map-Tube-Milan-0.008.tar.gz, MFONTANI, 2024; MetaCPAN )
Map-Tube-Milan/lib/Map/Tube/Milan.pm ( view source; MetaCPAN )
File::Share qw<:all>;
use Moo;
use namespace::autoclean;

has json => (is => 'ro', default => sub { dist_file('Map-Tube-Milan','milan.json') });

with 'Map::Tube';

1;

__END__

=pod

=encoding UTF-8
;

The only argument, C<json>, is optional; if specified, it should be a code ref
to a function that returns either the path the JSON map file, or a string
containing this JSON content. The default is
istribution. For further information see L<Map::Tube>.

=head2 json()

This read-only accessor returns whatever was specified as the JSON source at
construction.

=head1 ERRORS

If something goes wron
OSLV-Monitor ( V/VV/VVELOX/OSLV-Monitor-1.0.2.tar.gz, VVELOX, 2024; MetaCPAN )
OSLV-Monitor/lib/OSLV/Monitor.pm ( view source; MetaCPAN )
($@) {
        print encode_json( { version => 1, data => {}, error => 1, errorString => 'load failed... ' . $@ } ) . "\n";
        exit 1;
    }

    my $data = encode_json( $monitor->run );

    pri
Catalyst-ControllerPerContext ( J/JJ/JJNAPIORK/Catalyst-ControllerPerContext-0.008.tar.gz, JJNAPIORK, 2024; MetaCPAN )
Catalyst-ControllerPerContext/lib/Catalyst/ControllerRole/View.pm ( view source; MetaCPAN )
ur %global_content_prefixes = (
  'HTML' => ['application/xhtml+xml', 'text/html'],
  'JSON' => ['application/json'],
  'XML' => ['application/xml', 'text/xml'],
  'JS' => ['application/javascript', '
App-Pod ( T/TI/TIMKA/App-Pod-0.40.tar.gz, TIMKA, 2024; MetaCPAN )
App-Pod/lib/App/Pod.pm ( view source; MetaCPAN )
le  );
use List::Util            qw( first max );
use Mojo::File            qw( path );
use Mojo::JSON            qw( j );
use Perl::OSType          qw( os_type );
use Term::ANSIColor       qw( colore
OSLV-Monitor ( V/VV/VVELOX/OSLV-Monitor-1.0.2.tar.gz, VVELOX, 2024; MetaCPAN )
OSLV-Monitor/lib/OSLV/Monitor/Backends/cgroups.pm ( view source; MetaCPAN )
package OSLV::Monitor::Backends::cgroups;

use 5.006;
use strict;
use warnings;
use JSON;
use Clone 'clone';
use File::Slurp;
use IO::Interface::Simple;
use Math::BigInt;
use Scalar::Util qw(looks_lik
 - base_dir :: Path to use for the base dir, where the proc/cgroup
            cache, linux_cache.json, is is created.
        Default :: /var/cache/oslv_monitor

    - obj :: The OSLVM::Monitor objec
     => {},
		obj             => $opts{obj},
		cache_file      => $opts{base_dir} . '/linux_cache.json',
		counters        => {
			'cpu-time'                     => 1,
			'system-time'                

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.