Group
Extension

Matches 35358

Daemonise ( L/LE/LEV/Daemonise-2.13.tar.gz, LEV, 2020; MetaCPAN )
Daemonise/lib/Daemonise/Plugin/Redis.pm ( view source; MetaCPAN )
MessagePack does not allow perl objects, but we appear
            # to have Types::Serialiser in JSON structures
            $scalar = encode_base64(nfreeze($data));
        }
    }

    $self->redis
jmx4perl ( R/RO/ROLAND/jmx4perl-1.13.tar.gz, ROLAND, 2020; MetaCPAN )
jmx4perl/lib/JMX/Jmx4Perl/Manual.pod ( view source; MetaCPAN )
uilding blocks of this bridge are based on standards well
known and used in both worlds: HTTP and JSON.

The agent part of jmx4perl can be found at www.jolokia.org. This site also
contains all relevan
 locally to the JMX
MBeanServer, and listens to HTTP requests whose results are translated into a
JSON representation. This reponse can be easily picked up by a Perl module,
L<JMX::Jmx4Perl> in our ca
ing the j4p agent servlet on
it. This works by using j4p.war as a JMX Proxy, which translates our
JSON/HTTP protocol on the frontside to JSR-160 JMX remote requests on the
backend and vice versa.

A d
jmx4perl ( R/RO/ROLAND/jmx4perl-1.13.tar.gz, ROLAND, 2020; MetaCPAN )
jmx4perl/lib/JMX/Jmx4Perl/Agent.pm ( view source; MetaCPAN )
#!/usr/bin/perl
package JMX::Jmx4Perl::Agent;

use JSON;
use URI::Escape qw(uri_escape_utf8);
use HTTP::Request;
use Carp;
use strict;
use vars qw($VERSION $DEBUG);
use base qw(JMX::Jmx4Perl);
use JMX
nt;
use Data::Dumper;


$VERSION = $JMX::Jmx4Perl::VERSION;

=head1 NAME 

JMX::Jmx4Perl::Agent - JSON-HTTP based acess to a remote JMX agent

=head1 SYNOPSIS

 my $agent = new JMX::Jmx4Perl(mode=>"ag
ified in L<JMX::Jmx4Perl>. It uses a
L<HTTP::Request> sent via an L<LWP::UserAgent> for posting a JSON representation
of the request. This method shouldn't be called directly but via
L<JMX::Jmx4Perl>-
jmx4perl ( R/RO/ROLAND/jmx4perl-1.13.tar.gz, ROLAND, 2020; MetaCPAN )
jmx4perl/lib/JMX/Jmx4Perl.pm ( view source; MetaCPAN )
e
MBeanServer within in the application server and transfers JMX related
information via HTTP and JSON to the client (i.e. this module). Please refer to
L<JMX::Jmx4Perl::Manual> for installation instr
VERSION $HANDLER_BASE_PACKAGE @PRODUCT_HANDLER_ORDERING);
use Data::Dumper;
use Module::Find;
use JSON;

$VERSION = "1.13";

my $REGISTRY = {
                # Agent based
                "agent" => "
uired
            alarm $timeout;
            $s->recv($data,8192);
            push @result,from_json($data, {utf8 => 1} );
            alarm 0;
        };
        if ($@) {
            die unless $@
Dancer2-Plugin-Deferred ( Y/YA/YANICK/Dancer2-Plugin-Deferred-0.008000.tar.gz, DELUXARAN, 2020; MetaCPAN )
Dancer2-Plugin-Deferred/test/Dancer2-Plugin-Deferred-0.006/t/00-report-prereqs.t ( view source; MetaCPAN )
# Add dynamic prereqs to the included modules list (if we can)
my ($source) = grep { -f } 'MYMETA.json', 'MYMETA.yml';
if ( $source && $HAS_CPAN_META ) {
  if ( my $meta = eval { CPAN::Meta->load_file
jmx4perl ( R/RO/ROLAND/jmx4perl-1.13.tar.gz, ROLAND, 2020; MetaCPAN )
jmx4perl/lib/JMX/Jmx4Perl/Nagios/SingleCheck.pm ( view source; MetaCPAN )
XT);
use Carp;
use Scalar::Util qw(looks_like_number);
use URI::Escape;
use Text::ParseWords;
use JSON;

our $AUTOLOAD;

=head1 NAME

JMX::Jmx4Perl::Nagios::SingleCheck - A single nagios check

This i
_safe_value {
    my $self = shift;
    my $value = shift;
    if (defined($value)) {
        if (JSON::is_bool($value)) {
            return $value ? "true" : "false";
        } elsif (ref($value) &&
.$extra);
    }
    
    if (!$req->is_mbean_pattern && (ref($resp->value) && !$self->string) && !JSON::is_bool($resp->value)) { 
        $self->_die("Response value is a " . ref($resp->value) .
     
jmx4perl ( R/RO/ROLAND/jmx4perl-1.13.tar.gz, ROLAND, 2020; MetaCPAN )
jmx4perl/lib/JMX/Jmx4Perl/Request.pm ( view source; MetaCPAN )
an C<java.lang:type=Memory>'s attribute C<HeapMemoryUsage> is a complex
value, which looks in the JSON representation like

 "value":{"init":0,"max":518979584,"committed":41381888,"used":33442568}

So
eErrors

With these number you can restrict the size of the JSON structure
returned. C<maxDepth> gives the maximum nesting level of the JSON
object,C<maxObjects> returns the maximum number of objects 
 No operation name given\n" unless $self->{operation};
    }
}

# Called for post requests
sub TO_JSON {
    my $self = shift;
    my $ret = {
               type => $self->{type} ? uc($self->{type}) 
Dancer2-Plugin-Deferred ( Y/YA/YANICK/Dancer2-Plugin-Deferred-0.008000.tar.gz, DELUXARAN, 2020; MetaCPAN )
Dancer2-Plugin-Deferred/test/Dancer2-Plugin-Deferred-0.007/t/00-report-prereqs.t ( view source; MetaCPAN )
# Add dynamic prereqs to the included modules list (if we can)
my ($source) = grep { -f } 'MYMETA.json', 'MYMETA.yml';
if ( $source && $HAS_CPAN_META ) {
  if ( my $meta = eval { CPAN::Meta->load_file
IPC-Run3-Shell ( H/HA/HAUKEX/IPC-Run3-Shell-0.58.tar.gz, HAUKEX, 2020; MetaCPAN )
IPC-Run3-Shell/lib/IPC/Run3/Shell/CLIWrapper.pm ( view source; MetaCPAN )
se JSON::PP qw/decode_json/;
 my $s3api = IPC::Run3::Shell::CLIWrapper->new( { fail_on_stderr => 1,
     stdout_filter => sub { $_=decode_json($_) } },
     qw/ aws --profile MyProfile --output json s
Net-ACME2 ( F/FE/FELIPE/Net-ACME2-0.40_02.tar.gz, FELIPE, 2020; MetaCPAN )
Net-ACME2/lib/Net/ACME2.pm ( view source; MetaCPAN )
newAccount_booleans()) {
        next if !exists $opts{$name};
        ($opts{$name} &&= JSON::true()) ||= JSON::false();
    }

    return Net::ACME2::PromiseUtil::then(
        $self->_post( 'newAcc
Net-ACME2 ( F/FE/FELIPE/Net-ACME2-0.40_02.tar.gz, FELIPE, 2020; MetaCPAN )
Net-ACME2/lib/Net/ACME2/HTTP.pm ( view source; MetaCPAN )
l.
It wraps POSTs in JWSes (JSON Web Signatures) as needed.

There should be no reason to interact with this class in production.

=cut

use strict;
use warnings;

use JSON ();

use Net::ACME2::Error 
seUtil    ();
use Net::ACME2::X              ();

use constant _CONTENT_TYPE => 'application/jose+json';

my $_MAX_RETRIES = 5;

#accessed from tests
our $_NONCE_HEADER = 'replay-nonce';

#Used in tes
  my $jws = shift;

            # local $opts_hr->{'headers'}{'Content-Type'} = 'application/jose+json';

            return Net::ACME2::PromiseUtil::do_then_catch(
                sub {
             
Net-ACME2 ( F/FE/FELIPE/Net-ACME2-0.40_02.tar.gz, FELIPE, 2020; MetaCPAN )
Net-ACME2/lib/Net/ACME2/HTTP/Response.pm ( view source; MetaCPAN )
CME2::HTTP::Response;

use strict;
use warnings;

use parent qw( HTTP::Tiny::UA::Response );

use JSON          ();

use Net::ACME2::X ();

sub die_because_unexpected {
    my ($self) = @_;

    die N
ut certificate issuance, apparently?
sub content_struct {
    my ($self) = @_;

    my $json = ($self->{'_json'} ||= JSON->new()->allow_nonref());

    return $json->decode( $self->content() );
}

1;
Net-ACME2 ( F/FE/FELIPE/Net-ACME2-0.40_02.tar.gz, FELIPE, 2020; MetaCPAN )
Net-ACME2/lib/Net/ACME2/AccountKey.pm ( view source; MetaCPAN )
my $json = qq<{"e":"$e","kty":"RSA","n":"$n"}>;

    require Digest::SHA;
    my $hash_cr = Digest::SHA->can( _JWK_THUMBPRINT_DIGEST() );
    return MIME::Base64::encode_base64url( $hash_cr->($json) )
Net-ACME2 ( F/FE/FELIPE/Net-ACME2-0.40_02.tar.gz, FELIPE, 2020; MetaCPAN )
Net-ACME2/lib/Net/ACME2/JWTMaker.pm ( view source; MetaCPAN )
-----------------------------------------------------------------

use strict;
use warnings;

use JSON              ();
use MIME::Base64      ();

use Net::ACME2::X ();

BEGIN {
    *_encode_b64u = *M
r
    $header->{alg} = $alg;

    # encode header
    my $json_header = $self->_encode_json($header);
    my $b64u_header = _encode_b64u($json_header);

    my $b64u_signature = _encode_b64u( $signer_
$self->_encode_json(
        {
            protected => $b64u_header,
            payload => $b64u_payload,
            signature => $b64u_signature,
        }
    );
}

sub _encode_json {
    my ($se
IPC-Run3-Shell ( H/HA/HAUKEX/IPC-Run3-Shell-0.58.tar.gz, HAUKEX, 2020; MetaCPAN )
IPC-Run3-Shell/lib/IPC/Run3/Shell.pod ( view source; MetaCPAN )
puts JSON, you can turn
the output from that command into a Perl data structure like this
(this is just a demonstration using C<echo> that passes its input
through):

 use JSON::PP qw/encode_json deco
l [ foo => { fail_on_stderr => 1,
     stdout_filter => sub { $_=decode_json($_) } }, qw/ echo / ];
 
 my $foo = foo( encode_json( { test=>'123' } ) );
 print $foo->{test}, "\n"; # prints "123"

=for 
WebService-PivotalTracker ( D/DR/DROLSKY/WebService-PivotalTracker-0.12.tar.gz, DROLSKY, 2020; MetaCPAN )
WebService-PivotalTracker/lib/WebService/PivotalTracker/Label.pm ( view source; MetaCPAN )
ill be returned as a L<DateTime> object.

=head2 counts

=head2 kind

=head2 raw_content

The raw JSON used to create this object.

=head1 SUPPORT

Bugs may be submitted through L<https://github.com/m
Test-Mojo-Role-Selenium ( J/JH/JHTHORSEN/Test-Mojo-Role-Selenium-0.17.tar.gz, JHTHORSEN, 2020; MetaCPAN )
Test-Mojo-Role-Selenium/lib/Test/Mojo/Role/Selenium.pm ( view source; MetaCPAN )
IUM_BASE_URL} ||= $ENV{TEST_SELENIUM} =~ /^http/ ? $ENV{TEST_SELENIUM} : '';

sub S { Mojo::JSON::encode_json($_[0]) }

our $VERSION = '0.17';

my $SCRIPT_NAME = File::Basename::basename($0);
my $SCRE
POE-Component-MetaCPAN-Recent ( B/BI/BINGOS/POE-Component-MetaCPAN-Recent-1.04.tar.gz, BINGOS, 2020; MetaCPAN )
POE-Component-MetaCPAN-Recent/lib/POE/Component/MetaCPAN/Recent.pm ( view source; MetaCPAN )
se POE qw[Component::SmokeBox::Recent::HTTP];
use URI;
use HTTP::Request;
use HTTP::Response;
use JSON::PP;
use Time::Piece;

sub spawn {
  my $package = shift;
  my %opts = @_;
  $opts{lc $_} = delet
_requests}--;
  if ( $http_resp and $http_resp->code() == 200 ) {
    my $recents = eval { decode_json( $http_resp->content() ) };
    SWITCH: {
      last SWITCH unless $recents;
      last SWITCH un
App-GitHubPullRequest ( R/RO/ROBINS/App-GitHubPullRequest-0.6.0.tar.gz, ROBINS, 2020; MetaCPAN )
App-GitHubPullRequest/lib/App/GitHubPullRequest.pm ( view source; MetaCPAN )
:VERSION = '0.6.0';
# ABSTRACT: Command-line tool to query GitHub pull requests

use JSON qw(decode_json encode_json);
use Carp qw(croak);
use Encode qw(encode_utf8);
use File::Spec;

use constant DEB
de_json($response), $code
        if $return_on_error;
    return decode_json($response);
}

# Perform an API POST request
sub _api_create {
    my ($url, $data, @rest) = @_;
    return decode_json(
 
application/json',
            encode_json($data),
            @rest,
        )
    );
}

# Perform an API PATCH request
sub _api_update {
    my ($url, $data) = @_;
    return decode_json(
        _p
WebService-MinFraud ( M/MA/MAXMIND/WebService-MinFraud-1.010000.tar.gz, MAXMIND, 2020; MetaCPAN )
WebService-MinFraud/lib/WebService/MinFraud/Example.pod ( view source; MetaCPAN )
=> 19,
           discount                     => 3.2,
           previous_user                => JSON->true,
       },
       device => {
           accept_language => 'en-US,en;q=0.8',
           ip

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