Group
Extension

Matches 35358

WebService-AbuseIPDB ( H/HO/HOUSTON/WebService-AbuseIPDB-0.04.tar.gz, HOUSTON, 2025; MetaCPAN )
WebService-AbuseIPDB/lib/WebService/AbuseIPDB.pm ( view source; MetaCPAN )
e strict;
use warnings;

# use other modules
use IO::Socket::SSL;
use REST::Client;
use Carp;
use JSON::MaybeXS;
use URI;    # The GET requests need URI-escaping

our $VERSION = '0.04';

sub new {
	my
/api/v$self->{api_ver}/$path";
	my $ct = {'Content-type' => 'application/json'};
	my $headers = {
		Accept => 'application/json',
		Key    => $self->{key}
	};
	if ($meth eq 'GET') {
		my $u = URI->new
ion/json';
			$self->{ua}->POST ($path, encode_json ($data), $headers);
		} else {
			croak "Unrecognised method '$meth'";
		}

		if ($self->{ua}->responseCode !~ /400|50./) {
			return decode_json $s
Inline-Python ( N/NI/NINE/Inline-Python-0.58.tar.gz, NINE, 2025; MetaCPAN )
Inline-Python/Python.pm ( view source; MetaCPAN )
y ($self) = @_;
    return $$self;
}

sub negate {
    my ($self) = @_;
    return $self ? $false : $true;
}

sub TO_JSON {
    my ($self) = @_;
    return $self ? JSON::true() : JSON::false();
}

1;
Data-Record-Serialize ( D/DJ/DJERIUS/Data-Record-Serialize-2.02.tar.gz, DJERIUS, 2025; MetaCPAN )
Data-Record-Serialize/lib/Data/Record/Serialize.pm ( view source; MetaCPAN )
ut to json
    $s = Data::Record::Serialize->new( encode => 'json', \%attr );
    $s->send( \%record );

    # cleanup record before sending
    $s = Data::Record::Serialize->new( encode => 'json',
  
a::Record::Serialize::Encode::ddump>

encode via L<Data::Dumper>

=item *

C<json> - L<Data::Record::Serialize::Encode::json>

=item *

C<null> - L<Data::Record::Serialize::Sink::null>

This is a comb
ansformed into a number. It
defaults to C<false>, unless a particular encoder requires it
(e.g. C<json>).  To avoid unnecessary conversion overhead, set this to
C<false> if you are sure that your data
Monitoring-Livestatus ( N/NI/NIERLEIN/Monitoring-Livestatus-0.86.tar.gz, NIERLEIN, 2025; MetaCPAN )
Monitoring-Livestatus/lib/Monitoring/Livestatus.pm ( view source; MetaCPAN )
package Monitoring::Livestatus;

use warnings;
use strict;
use Carp qw/carp confess/;
use Cpanel::JSON::XS ();
use Data::Dumper qw/Dumper/;
use IO::Select ();
use Storable qw/dclone/;

use Monitoring:
slice'         => 1,
        'sum'           => 1,
        'callbacks'     => 1,
        'wrapped_json'  => 1,
        'sort'          => 1,
        'offset'        => 1,
};

=head1 NAME

Monitoring::

            if($opt->{'wrapped_json'}) {
                $header .= "OutputFormat: wrapped_json\n";
            } else {
                $header .= "OutputFormat: json\n";
            }
            $
App-Cme ( D/DD/DDUMONT/App-Cme-1.043.tar.gz, DDUMONT, 2025; MetaCPAN )
App-Cme/lib/App/Cme/Command/dump.pm ( view source; MetaCPAN )
 ;

use base qw/App::Cme::Common/;

use Config::Model::ObjTreeScanner;
use YAML::PP qw/Dump/;
use JSON;
use Data::Dumper;

sub validate_args {
    my ($self, $opt, $args) = @_;
    $self->check_unknow
    [
            "format=s" => "dump using specified format (yaml json perl cml)",
            {
                regex => qr/^(?:json|ya?ml|perl|cml|cds)$/i,
                default => 'yaml'
       
ump_string
            = $format =~ /ya?ml/i ? Dump($perl_data)
            : $format =~ /json/i  ? encode_json($perl_data)
            :                       Dumper($perl_data) ; # Perl data structu
Lab-Measurement ( A/AK/AKHUETTEL/Lab-Measurement-3.931.tar.gz, AKHUETTEL, 2025; MetaCPAN )
Lab-Measurement/lib/Lab/Moose/Connection/HTTP.pm ( view source; MetaCPAN )
 my $req = HTTP::Request->new( 'POST', $url);
       $req->header( 'Content-Type' => 'application/json' );
       $req->content( $body );

    return $self->ua->request( $req );
}

sub Clear {

}

wit
SlapbirdAPM-Agent-CGI ( R/RA/RAWLEYFOW/SlapbirdAPM-Agent-CGI-0.05.tar.gz, RAWLEYFOW, 2025; MetaCPAN )
SlapbirdAPM-Agent-CGI/lib/SlapbirdAPM/Agent/CGI.pm ( view source; MetaCPAN )
:Tee;
use IO::Pipe;
use Time::HiRes;
use HTTP::Request;
use HTTP::Response;
use System::Info;
use JSON;

$Carp::Internal{__PACKAGE__} = 1;

our $VERSION = '0.05';

my %request_headers;
our $cgi = CGI-
TTP::Request->new( POST => $uri );
    $sb_request->content_type('application/json');
    $sb_request->content( encode_json($slapbird_hash) );
    $sb_request->header( 'x-slapbird-apm' => $key );
    
Lab-Measurement ( A/AK/AKHUETTEL/Lab-Measurement-3.931.tar.gz, AKHUETTEL, 2025; MetaCPAN )
Lab-Measurement/lib/Lab/Moose/Instrument/ZI_HDAWG.pm ( view source; MetaCPAN )
mand table; Bit
1, Bit 2: reserved; Bit 3: uploading of data to the command table failed due to a JSON parsing error.

=head3 /DEV/AWGS/n/DIO/DELAY/INDEX 
Properties: Read Write Setting 
Type: Integer
Connector ( M/MR/MRSCOTTY/Connector-1.55.tar.gz, MRSCOTTY, 2025; MetaCPAN )
Connector/gen-cpanfile.pl ( view source; MetaCPAN )
use CPAN::Meta;
use Data::Dumper;
use Module::CPANfile;
my $meta = CPAN::Meta->load_file('MYMETA.json');
my $file = Module::CPANfile->from_prereqs($meta->prereqs);
$file->save('cpanfile');

# load to 
OpenTelemetry-Exporter-OTLP ( J/JJ/JJATRIA/OpenTelemetry-Exporter-OTLP-0.021.tar.gz, JJATRIA, 2025; MetaCPAN )
OpenTelemetry-Exporter-OTLP/lib/OpenTelemetry/Exporter/OTLP.pm ( view source; MetaCPAN )
ffers::Dynamic;
        1;
    };

    my $PROTOCOL = $CAN_USE_PROTOBUF ? 'http/protobuf' : 'http/json';

    my $COMPRESSION = eval {
        require Compress::Zlib;
        'gzip';
    } // 'none';
/(protobuf|json)$/;

            my $class = 'OpenTelemetry::Exporter::OTLP::Encoder::';
            $class .= 'Protobuf' if $1 eq 'protobuf';
            $class .= 'JSON'     if $1 eq 'json';

      
oder class. Defaulting to JSON',
                    { class => $class, error => $e },
                );

                require OpenTelemetry::Exporter::OTLP::Encoder::JSON;
                OpenTel
OpenTelemetry-Exporter-OTLP ( J/JJ/JJATRIA/OpenTelemetry-Exporter-OTLP-0.021.tar.gz, JJATRIA, 2025; MetaCPAN )
OpenTelemetry-Exporter-OTLP/lib/OpenTelemetry/Exporter/OTLP/Encoder/JSON.pod ( view source; MetaCPAN )
::Encoder::JSON - A JSON encoder for the OTLP exporter

=head1 SYNOPSIS

    use OpenTelemetry::Exporter::OTLP::Encoder::JSON;

    my $encoded = OpenTelemetry::Exporter::OTLP::Encoder::JSON->new
    
ncoder class used by L<OpenTelemetry::Exporter::OTLP> when using
the "http/json" protocol. It encodes telemetry data as a JSON string
complying with the 1.2.0 version of
L<the OTLP specification|https
github.com/open-telemetry/opentelemetry-proto/tree/v1.2.0>.

This encoder uses L<JSON::MaybeXS> to find a suitable JSON encoder. Please
refer to the documentation of that module for details on how you
OpenTelemetry-Exporter-OTLP ( J/JJ/JJATRIA/OpenTelemetry-Exporter-OTLP-0.021.tar.gz, JJATRIA, 2025; MetaCPAN )
OpenTelemetry-Exporter-OTLP/lib/OpenTelemetry/Exporter/OTLP.pod ( view source; MetaCPAN )
default exporter used by
L<OpenTelemetry::SDK>, and can be used to export data either using plain
JSON strings, or binary protocol buffer blobs. See below for details.

=head1 METHODS

This class impl
col

OTLP supports multiple protocols. This exporter currently supports only
"http/json", which exports data as a JSON string over HTTP, and
"http/protobuf", which exports it as a Protobuf-encoded bin
lt to "http/protobuf". Otherwise the exporter will
fall back to "http/json", using whatever encoding back-end is provided by
L<JSON::MaybeXS>.

If the value is set to a value other than the ones laid 
OpenTelemetry-Exporter-OTLP ( J/JJ/JJATRIA/OpenTelemetry-Exporter-OTLP-0.021.tar.gz, JJATRIA, 2025; MetaCPAN )
OpenTelemetry-Exporter-OTLP/lib/OpenTelemetry/Exporter/OTLP/Encoder/Protobuf.pm ( view source; MetaCPAN )
OpenTelemetry::Exporter::OTLP::Encoder::Protobuf
    :isa(OpenTelemetry::Exporter::OTLP::Encoder::JSON) {

    use OpenTelemetry::Constants 'INVALID_SPAN_ID';
    use OpenTelemetry::Proto;
    use Ref
Mojolicious-Plugin-OpenTelemetry ( J/JJ/JJATRIA/Mojolicious-Plugin-OpenTelemetry-0.005.tar.gz, JJATRIA, 2025; MetaCPAN )
Mojolicious-Plugin-OpenTelemetry/lib/Mojolicious/Plugin/OpenTelemetry.pod ( view source; MetaCPAN )
p('https://httpbin.org/delay/1')
            ->then( sub {
                $c->render( json => shift->result->json );
            });
    };

    # Errors will be correctly captured in the span
    ge
Lab-Measurement ( A/AK/AKHUETTEL/Lab-Measurement-3.931.tar.gz, AKHUETTEL, 2025; MetaCPAN )
Lab-Measurement/lib/Lab/Moose/Instrument/Bluefors_Temp.pm ( view source; MetaCPAN )
se Carp;
use namespace::autoclean;
use Time::HiRes qw/time usleep/;

# HTTP request JSON stuff
use DateTime;
use JSON::PP;
use Data::Dumper;


extends 'Lab::Moose::Instrument';

has default_channel =>
    isa => 'Num',
    default => 90,
);

has json => (
    is => 'ro',
    isa => 'Any',
    builder => '_build_json',
);
sub _build_json {
    return JSON::PP->new;
}

around default_connection_optio
me->now."Z"; 
    my $time_start = DateTime->from_epoch(epoch => time()-$time)."Z";

    my %hash_json = ( 'channel_nr'  => $channel_nr,
                      'start_time' => $time_start,
            
YAML-LibYAML ( T/TI/TINITA/YAML-LibYAML-v0.904.0.tar.gz, TINITA, 2025; MetaCPAN )
YAML-LibYAML/lib/YAML/XS.pod ( view source; MetaCPAN )
serialize data as YAML booleans:

When set to C<"JSON::PP"> or C<"boolean">, the plain (unquoted) strings C<true> and C<false> will be loaded as C<JSON::PP::Boolean> or C<boolean.pm> objects. Those ob
will try to load [JSON::PP] or [boolean] and die if it can't be loaded.

With that it's possible to add new "real" booleans to a data structure:

    local $YAML::XS::Boolean = "JSON::PP"; # or "boole
JSON::PP::false;
    my $yaml = Dump($data);
    # boolfalse: false
    # booltrue: true

It also lets booleans survive when loading YAML via YAML::XS and encode it in JSON via one of the various JSON
Map-Tube ( M/MA/MANWAR/Map-Tube-4.10.tar.gz, MANWAR, 2025; MetaCPAN )
Map-Tube/lib/Map/Tube.pm ( view source; MetaCPAN )
;
    unless ((grep /^xml$/, @attributes) || (grep /^json$/, @attributes)) {
        die "ERROR: Can't apply Map::Tube role, missing 'xml' or 'json'.";
    }

    $self->_init_map;
    $self->_load_pl
_number => $caller->[2] });
    }
    else {
        my $json = $self->json;
        if ($json ne '') {
            eval { $data = to_perl($json) };
            unless ($@) {
                $self->_v
              method      => $method,
                message     => "ERROR: Malformed Map Data ($json): $@",
                filename    => $caller->[1],
                line_number => $caller->[2] }
Data-Record-Serialize ( D/DJ/DJERIUS/Data-Record-Serialize-2.02.tar.gz, DJERIUS, 2025; MetaCPAN )
Data-Record-Serialize/lib/Data/Record/Serialize/Encode/yaml.pm ( view source; MetaCPAN )
ze::Error { errors => ['yaml_backend'] }, -all;
use Types::Standard qw[ Enum ];

use JSON::PP;    # needed for JSON::PP::true/false

use namespace::clean;

our $VERSION = '2.02';

BEGIN {
    my $YAML
ML::XS::Boolean = 'JSON::PP';
            YAML::XS::Dump( $_[1] );
        };
    }
    elsif ( eval { require YAML::PP } ) {
        my $processor = YAML::PP->new( boolean => 'JSON::PP' );
        *e
fy' => ( is => 'ro', default => 1 );

sub _needs_eol { 1 }









sub to_bool { $_[1] ? JSON::PP::true : JSON::PP::false }






with 'Data::Record::Serialize::Role::Encode';

1;

#
# This file is p
EBook-Gutenberg ( S/SA/SAMYOUNG/EBook-Gutenberg-1.00.tar.gz, SAMYOUNG, 2025; MetaCPAN )
EBook-Gutenberg/lib/EBook/Gutenberg.pm ( view source; MetaCPAN )

use Getopt::Long;
use File::Path qw(make_path);
use File::Spec;
use File::Temp qw(tempfile);
use JSON::PP;
use List::Util qw(all first max);

use EBook::Gutenberg::Catalog;
use EBook::Gutenberg::Dial
ta_json {

    my $book = shift;

    my %copy = %$book;;

    for my $k (qw(Authors Subjects Bookshelves LoCC)) {
        $copy{ $k } = [ split /\s*;\s*/, $copy{ $k } ];
    }

    my $json = JSON::P
P->new->pretty(1)->canonical(1);

    return $json->encode(\%copy);

}

sub _touch_get {

    my $self = shift;

    # touch file
    if (-f $self->{ GetFile }) {
        utime undef, undef, $self->{ 
Apache-Solr ( M/MA/MARKOV/Apache-Solr-1.11.tar.gz, MARKOV, 2025; MetaCPAN )
Apache-Solr/lib/Apache/Solr/XML.pod ( view source; MetaCPAN )
=> LWP::UserAgent object

=item autocommit => BOOLEAN

=item core => NAME

=item format => 'XML'|'JSON'

=item retry_max => COUNT

=item retry_wait => SECONDS

=item server => URL

=item server_versio

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