Group
Extension

Matches 35358

Crypt-MagicSignatures-Envelope ( A/AK/AKRON/Crypt-MagicSignatures-Envelope-0.15.tar.gz, AKRON, 2021; MetaCPAN )
Crypt-MagicSignatures-Envelope/Readme.pod ( view source; MetaCPAN )
ts MagicEnvelopes in the
L<JSON notation|http://salmon-protocol.googlecode.com/svn/trunk/draft-panzer-magicsig-01.html#anchor5>
or defined by the same attributes as the JSON notation
(but with the dat
tter is the common way to fold new envelopes.

  $me = Crypt::MagicSignatures::Envelope->new(<<'MEJSON');
  {
    "data_type": "text\/plain",
    "data":"U29tZSBhcmJpdHJhcnkgc3RyaW5nLg==",
    "alg":"
   { "key_id": "my-01",
        "value":"S1VqYVlIWFpuRGVTX3l4S09CcWdjRV..."
      }
    ]
  }
  MEJSON

  $me = Crypt::MagicSignatures::Envelope->new(
    data      => 'Some arbitrary string.',
    da
Table-Readable ( B/BK/BKB/Table-Readable-0.05.tar.gz, BKB, 2021; MetaCPAN )
Table-Readable/lib/Table/Readable.pod ( view source; MetaCPAN )
isance compared to Perl, and I've
found it's usually easier to convert the tables to JSON in Perl then
read the JSON into a C<map[string]string> in Go.

=head1 DEPENDENCIES

=over

=item Carp

L<Carp>
Pod-ProjectDocs ( M/MG/MGRUNER/Pod-ProjectDocs-0.53.tar.gz, MGRUNER, 2021; MetaCPAN )
Pod-ProjectDocs/lib/Pod/ProjectDocs/IndexPage.pm ( view source; MetaCPAN )
fault_name' => (
    is      => 'ro',
    isa     => 'Str',
    default => 'index.html',
);

has 'json' => (
    is  => 'rw',
    isa => 'Str',
);

has 'components' => (
    is  => 'rw',
    isa => 'H
relative_url %]" type="text/css" />
<script type="text/javascript">
//<![CDATA[
var managers = [% json %];
function render(pattern) {
    var html = '';
    for ( var i = 0; i < managers.length; i++ )
    => $self->config->desc,
        lang             => $self->config->lang,
        json             => $self->json,
        charset          => 'UTF-8',
        css_relative_url => $self->components
GitLab-API-v3 ( B/BL/BLUEFEET/GitLab-API-v3-1.06.tar.gz, BLUEFEET, 2021; MetaCPAN )
GitLab-API-v3/lib/GitLab/API/v3.pm ( view source; MetaCPAN )
ss, $url );

    my $rest = $class->new(
        server  => $url,
        type    => 'application/json',
        retries => $self->retries,
    );

    return $rest;
}

=head2 retries

The number of t
Pod-ProjectDocs ( M/MG/MGRUNER/Pod-ProjectDocs-0.53.tar.gz, MGRUNER, 2021; MetaCPAN )
Pod-ProjectDocs/lib/Pod/ProjectDocs.pm ( view source; MetaCPAN )


use strict;
use warnings;

our $VERSION = '0.53';    # VERSION

use Moose;

use File::Spec;
use JSON;
use Pod::ProjectDocs::DocManager;
use Pod::ProjectDocs::Config;
use Pod::ProjectDocs::Parser;
us
components,
        json       => $self->get_managers_json,
    );
    $index_page->publish();
    return;
}

sub get_managers_json {
    my $self    = shift;
    my $js      = JSON->new;
    my $entr
Array-OverlapFinder ( P/PE/PERLANCAR/Array-OverlapFinder-0.005.tar.gz, PERLANCAR, 2021; MetaCPAN )
Array-OverlapFinder/lib/Array/OverlapFinder.pm ( view source; MetaCPAN )
red with 'eq' operator; if you have array
 # of records/structures, you can encode each record as JSON or using Data::Dmp,
 # for example)
 my @seq1 = qw(1 2 3 4 5 6);
 my @seq2 = qw(4 5 6 7 8 9);
 my
BioPerl ( C/CJ/CJFIELDS/BioPerl-1.7.8.tar.gz, CJFIELDS, 2021; MetaCPAN )
BioPerl/lib/Bio/SeqFeature/Tools/Unflattener.pm ( view source; MetaCPAN )
 make exceptions for circular genomes here.
                    # see Re: [Gmod-ajax] flatfile-to-json.pl error with GFF
                    # 2010-07-26
                }
                else {
     
Net-LastFM ( B/BA/BAERGAJ/Net-LastFM-0.38.tar.gz, BAERGAJ, 2021; MetaCPAN )
Net-LastFM/lib/Net/LastFM.pm ( view source; MetaCPAN )
tFM::VERSION = '0.38';
use Moose;
use MooseX::StrictConstructor;
use Digest::MD5 qw(md5_hex);
use JSON::XS::VersionOneAndTwo;
use LWP::UserAgent;
use URI::QueryParam;

has 'api_key' => (
    is       
= $conf{$key};
        $uri->query_param( $key, $value );
    }
    $uri->query_param( 'format', 'json' );

    return HTTP::Request->new( 'POST', $uri, [ 'Content-Length' => 0 ] );
}

sub create_http
= @_;
    my $ua = $self->ua;

    my $response = $ua->request($request);
    my $data     = from_json( $response->content );

    if ( defined $data->{error} ) {
        my $code    = $data->{error};
cPanel-PublicAPI ( C/CP/CPANEL/cPanel-PublicAPI-2.8.tar.gz, CPANEL, 2021; MetaCPAN )
cPanel-PublicAPI/lib/cPanel/PublicAPI/WHM/JSONAPI.pm ( view source; MetaCPAN )
package cPanel::PublicAPI::JSONAPI;

# Copyright (c) 2015, cPanel, Inc.
# All rights reserved.
# http://cpanel.net
#
# Redistribution and use in source and binary forms, with or without
# modification
blicAPI ();

our $VERSION = '2.3';

package cPanel::PublicAPI;

use cPanel::PublicAPI::WHM::API ();

foreach my $sub ( grep ( /^api_/, keys %cPanel::PublicAPI:: ) ) {
    *{"json$sub"} = *$sub;
}

1;
Net-Async-Pusher ( T/TE/TEAM/Net-Async-Pusher-0.005.tar.gz, TEAM, 2021; MetaCPAN )
Net-Async-Pusher/lib/Net/Async/Pusher/Connection.pm ( view source; MetaCPAN )
e Net::Async::WebSocket::Client;
use IO::Async::SSL;
use URI;
use HTML::Entities ();
use JSON::MaybeXS;
use JSON::MaybeUTF8 qw(:v1);
use curry::weak;
use Log::Any qw($log);
use Variable::Disposition q
ad1 METHODS

=cut

sub bus { shift->{bus} //= Mixin::Event::Dispatch::Bus->new }

sub json { shift->{json} //= JSON::MaybeXS->new( allow_nonref => 1) }

=head2 send_ping

Sends a ping request on this 
cut

sub send_ping {
    my ($self) = @_;
    $self->client->send_frame(
        buffer => encode_json_utf8({
            event => 'pusher:ping',
            data  => { }
        }),
        masked =>
cPanel-PublicAPI ( C/CP/CPANEL/cPanel-PublicAPI-2.8.tar.gz, CPANEL, 2021; MetaCPAN )
cPanel-PublicAPI/lib/cPanel/PublicAPI.pod ( view source; MetaCPAN )
someuser', 'password' => 's0m3P4$$w()Rd' } );
  # Return JSON from xml-api (rather than a hash reference)
  $cp->whm_api('version', undef, 'json');

  # Perform an API2 query
  $cp->cpanel_api2_reques
der that it will fall back on serialization modules is:

=over

=item * JSON::Syck

=item * JSON

=item * JSON::XS

=item * JSON::PP

=back

If you installed this module via CPAN, this should never be
 you are wishing to use this
module on a system where you do not have access to compiled modules, JSON::PP is the recommended serializer.

=head1 Two-Factor Authentication (2FA)

cPanel version 54 and
cPanel-PublicAPI ( C/CP/CPANEL/cPanel-PublicAPI-2.8.tar.gz, CPANEL, 2021; MetaCPAN )
cPanel-PublicAPI/lib/cPanel/PublicAPI.pm ( view source; MetaCPAN )
xml' && $format ne 'json' && $format ne 'ref' ) {
        $self->error("cPanel::PublicAPI::whm_api_request() was called with an invalid data format, the only valid format are 'json', 'ref' or 'xml'");
 die $self->{'error'};
    }

    if ( defined $opts_hr->{'format'} && ( $opts_hr->{'format'} eq 'json' || $opts_hr->{'format'} eq 'xml' ) ) {
        return ${ $opts_hr->{'data'} };
    }
    else {
       [ 'JSON::Syck', 'json', 'Load'        ],
        [ 'JSON',       'json', 'decode_json' ],
        [ 'JSON::XS',   'json', 'decode_json' ],
        [ 'JSON::PP',   'json', 'decode_json' ],
     
Net-Async-Pusher ( T/TE/TEAM/Net-Async-Pusher-0.005.tar.gz, TEAM, 2021; MetaCPAN )
Net-Async-Pusher/lib/Net/Async/Pusher/Channel.pm ( view source; MetaCPAN )
s://pusher.com|Pusher> API.

=cut

use Syntax::Keyword::Try;
use Mixin::Event::Dispatch::Bus;
use JSON::MaybeXS;
use Ryu::Async;

use Log::Any qw($log);

sub configure {
    my ($self, %args) = @_;
  
onfigure(%args);
}

sub bus { shift->{bus} //= Mixin::Event::Dispatch::Bus->new }
sub json { shift->{json} //= JSON::MaybeXS->new( allow_nonref => 1) }

sub ryu { shift->{ryu} }

sub subscribe {
    m
{
        return $self->subscribed->done
    } else {
        try {
            my $data = $self->json->decode($info->{data});
            if(my $bus = $self->{bus}) {
                $self->bus->invo
DBIx-Class-Schema-Diff ( V/VA/VANSTYN/DBIx-Class-Schema-Diff-1.13.tar.gz, VANSTYN, 2021; MetaCPAN )
DBIx-Class-Schema-Diff/lib/DBIx/Class/Schema/Diff.pm ( view source; MetaCPAN )
data to a json file for later use:
 $D->old_schema->dump_json_file('/tmp/my_schema1_data.json');
 
 # Or
 DBIx::Class::Schema::Diff::SchemaData->new(
   schema => 'My::Schema1'
 )->dump_json_file('/tm
ema1_data.json');
 
 # Create new diff object using previously saved 
 # schema data + current schema class:
 $D = DBIx::Class::Schema::Diff->new(
   old_schema => '/tmp/my_schema1_data.json',
   new_
an object, HashRef, or a path to a file containing serialized JSON data (as 
produced by L<DBIx::Class::Schema::Diff::SchemaData#dump_json_file>)

See the SYNOPSIS and L<DBIx::Class::Schema::Diff::Sch
SQL-Translator-Parser-OpenAPI ( E/ET/ETJ/SQL-Translator-Parser-OpenAPI-0.08.tar.gz, ETJ, 2021; MetaCPAN )
SQL-Translator-Parser-OpenAPI/lib/SQL/Translator/Parser/OpenAPI.pm ( view source; MetaCPAN )
package SQL::Translator::Parser::OpenAPI;
use strict;
use warnings;
use JSON::Validator::OpenAPI::Mojolicious;

our $VERSION = "0.08";
use constant DEBUG => $ENV{SQLTP_OPENAPI_DEBUG};
use String::Came
 });
}

sub parse {
  my ($tr, $data) = @_;
  my $args = $tr->parser_args;
  my $openapi_schema = JSON::Validator::OpenAPI::Mojolicious->new->schema($data)->schema;
  my %defs = %{ $openapi_schema->ge
-openapi.json >my-mysqlschema.sql

  # or, applying an overlay:
  $ perl -MHash::Merge=merge -Mojo \
    -e 'print j merge map j(f($_)->slurp), @ARGV' \
      t/06-corpus.json t/06-corpus.json.overlay
DBIx-Class-Schema-Diff ( V/VA/VANSTYN/DBIx-Class-Schema-Diff-1.13.tar.gz, VANSTYN, 2021; MetaCPAN )
DBIx-Class-Schema-Diff/lib/DBIx/Class/Schema/Diff/SchemaData.pm ( view source; MetaCPAN )
andard qw(:all);
use Module::Runtime;
use Scalar::Util qw(blessed);
use Path::Class qw(file);
use JSON;
use Clone 'clone';
use Digest::SHA1;

use Data::Dumper;
use Data::Dumper::Concise;

has 'schema'
;
  return $self->data->{sources}{$name};
}

sub dump_json {
  my $self = shift;
  JSON::to_json( $self->data => { pretty => 1 });
}

sub dump_json_file {
  my ($self, $path) = @_;
  die "Filename req
 
  my $out_fh;
  open $out_fh, '>', $file or die "Could not open $file: $!";
  print $out_fh JSON::to_json( $self->data, { pretty => 1 });
  close $out_fh;
  return -f $file ? 1 : 0;
}


sub _gen_dat
Mojolicious-Matterbridge ( C/CO/CORION/Mojolicious-Matterbridge-0.02.tar.gz, CORION, 2021; MetaCPAN )
Mojolicious-Matterbridge/lib/Mojolicious/Matterbridge.pm ( view source; MetaCPAN )
d_get_messages();
    $self->short_ua->start_p($tx)->then(sub($tx) {
        my $payload = $self->json->decode( $tx->result->body );
        for my $message (@$payload) {
            my $m = API::Matt
eam( $self ) {
    my $tx = $self->build_get_message_stream();

    # Just in case we read half a JSON message
    state $buffer = '';

    # Replace "read" events to disable default content parser
  
ead => sub($content,$bytes) {
        $buffer .= $bytes;

        # Every (full) line should be a JSON stanza
        while( $buffer =~ s!^(.*?)\n!! ) {
            my $m = API::Matterbridge::Message-
Mojolicious-Matterbridge ( C/CO/CORION/Mojolicious-Matterbridge-0.02.tar.gz, CORION, 2021; MetaCPAN )
Mojolicious-Matterbridge/lib/API/Matterbridge.pm ( view source; MetaCPAN )
=> sub { URI->new( $_[0]->url . 'stream' ) },
);

has 'json' => (
    is => 'lazy',
    default => sub {
        require JSON;
        return JSON->new()
    },
);

sub build_post_message( $self, %opt
message_url,
        headers => {
            'Content-Type' => 'application/json',
        },
        data   => $self->json->encode( \%options ),
        ua     => $self->short_ua,
    );
}

sub buil
Task-MasteringPerl ( B/BD/BDFOY/Task-MasteringPerl-1.006.tar.gz, BDFOY, 2021; MetaCPAN )
Task-MasteringPerl/lib/Task/MasteringPerl.pm ( view source; MetaCPAN )
de::Splice

=item * Config

=item * Config::ApacheFile

=item * Config::IniFiles

=item * Config::JSON

=item * Config::Scoped

=item * ConfigReader::Simple

=item * Const::Fast

=item * DBD::CSV

=it
O::Interactive

=item * IO::Socket::INET

=item * Image::Info

=item * JSON

=item * JSON::PP

=item * JSON::Rabbit

=item * JSON::Syck

=item * List::Util

=item * Log::Log4perl

=item * Log::Log4per
Apache2-Filter-Minifier-JavaScript ( G/GT/GTERMARS/Apache2-Filter-Minifier-JavaScript-1.07.tar.gz, GTERMARS, 2021; MetaCPAN )
Apache2-Filter-Minifier-JavaScript/lib/Apache2/Filter/Minifier/JavaScript.pm ( view source; MetaCPAN )
      # if you need to supplement MIME-Type list
      PerlSetVar                JsMimeType  text/json

      # if you want to explicitly specify the minifier to use
      #PerlSetVar               Js

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