Group
Extension

Matches 35358

Sah-Schemas-TableData ( P/PE/PERLANCAR/Sah-Schemas-TableData-0.002.tar.gz, PERLANCAR, 2021; MetaCPAN )
Sah-Schemas-TableData/lib/Sah/SchemaR/perl/tabledata/modname_with_optional_args.pm ( view source; MetaCPAN )
 '0.002'; # VERSION

our $rschema = do{my$var={base=>"any",clsets_after_base=>[{of=>[["array_from_json",{elems=>[["str",{match=>"\\A(?:[A-Za-z_][A-Za-z_0-9]*(::[A-Za-z_0-9]+)*(?:=.*)?)\\z","x.completi
WWW-ELISA ( V/VP/VPEIL/WWW-ELISA-0.07.tar.gz, VPEIL, 2021; MetaCPAN )
WWW-ELISA/lib/WWW/ELISA.pm ( view source; MetaCPAN )
0.07';

use strict;
use warnings;
use Carp;
use Digest::MD5 qw( md5_hex );
use HTTP::Request;
use JSON::XS;
use LWP::UserAgent;
use Try::Tiny;

sub new {
    my $class = shift;
    my %args  = (endpoi
->header('Content-Type' => 'application/json');
        $req->content(encode_json($content));

        my $res = $ua->request($req);

        return decode_json($res->decoded_content);
    }
    catch
App-nioscli ( S/SS/SSMN/App-nioscli-0.001.tar.gz, SSMN, 2021; MetaCPAN )
App-nioscli/lib/App/nioscli/Commands/ref_get.pm ( view source; MetaCPAN )
ref_get::VERSION = '0.001';

# VERSION
# AUTHORITY

## use critic
use strictures 2;
use JSON qw(to_json from_json);
use MooseX::App::Command;

extends qw(App::nioscli);

command_short_description 'Get
 $self->nios_client->get( path => $self->ref );

  $response->is_success
    ? print(
    to_json( from_json( $response->{_content} ), { utf8 => 1, pretty => 1 } ) )
    : die( $response->{'_content'}
App-nioscli ( S/SS/SSMN/App-nioscli-0.001.tar.gz, SSMN, 2021; MetaCPAN )
App-nioscli/lib/App/nioscli/Commands/create_cname_record.pm ( view source; MetaCPAN )
name_record::VERSION = '0.001';

# VERSION
# AUTHORITY

## use critic
use strictures 2;
use JSON qw(from_json);
use MooseX::App::Command;

extends qw(App::nioscli);

command_short_description 'Create 
      => $self->name,
      canonical => $self->canonical
    };

    $payload->{extattrs} = from_json( $self->extattrs ) if defined $self->extattrs;

    return $payload;
  }
);

has 'path' => (
  de
Net-APNS-Simple ( R/RO/ROCKBONE/Net-APNS-Simple-0.07.tar.gz, ROCKBONE, 2021; MetaCPAN )
Net-APNS-Simple/lib/Net/APNS/Simple.pm ( view source; MetaCPAN )
package Net::APNS::Simple;
use 5.008001;
use strict;
use warnings;
use Carp ();
use JSON;
use Moo;
use Protocol::HTTP2::Client;
use IO::Select;
use IO::Socket::SSL qw();

our $VERSION = "0.07";

has [
:path' => $path,
        ':method' => 'POST',
        headers => \@headers,
        data => JSON::encode_json($payload),
        on_done => $cb,
    };
    return $self;
}

sub _make_client_request_si
URI-Fast ( J/JE/JEFFOBER/URI-Fast-0.55.tar.gz, JEFFOBER, 2021; MetaCPAN )
URI-Fast/Fast.xs ( view source; MetaCPAN )
---------------------------
SV* to_string(self, ...)
  SV *self
  ALIAS:
    as_string = 1
    TO_JSON = 2
  OVERLOAD:
    to_string \"\"
  CODE:
    RETVAL = to_string(aTHX_ self);
  OUTPUT:
    RETV
Benchmark-Perl-Formance ( S/SC/SCHWIGON/perl-formance/Benchmark-Perl-Formance-0.55.tar.gz, SCHWIGON, 2021; MetaCPAN )
Benchmark-Perl-Formance/lib/Benchmark/Perl/Formance.pm ( view source; MetaCPAN )
anything; # -cccc
        $outstyle          = 'json' if $benchmarkanything and $outstyle !~ /^(json|yaml|yamlish)$/;
        $outstyle          = 'json' if $benchmarkanything_report;

        # fill 
       return YAML::Dump($RESULTS);
}

sub print_outstyle_json
{
        my ($self, $RESULTS) = @_;

        require JSON;
        return JSON->new->allow_nonref->pretty->encode( $RESULTS );
}

sub pr
>{options}{outstyle};
        $outstyle = "summary" unless $outstyle =~ qr/^(summary|yaml|yamlish|json)$/;
        my $sub = "print_outstyle_$outstyle";

        my $output = $self->$sub($RESULTS);

 
Test-Mock-LWP-Distilled ( S/SK/SKINGTON/Test-Mock-LWP-Distilled-1.000.tar.gz, SKINGTON, 2021; MetaCPAN )
Test-Mock-LWP-Distilled/lib/Test/Mock/LWP/Distilled.pm ( view source; MetaCPAN )
ndard qw(ArrayRef Bool CodeRef Enum HashRef);

use Carp;
use Data::Compare;
use Data::Dumper;
use JSON::MaybeXS;
use Path::Class;

# Have you updated the version number in the POD below?
our $VERSION 
:UserAgent;

 use Moo;
 extends 'LWP::UserAgent';
 with 'Test::Mock::LWP::Distilled';
 
 use LWP::JSON::Tiny;
 
 # The suffix we use for our mock filename, to distinguish it from other mocks.
 sub fil
est_from_request {
     my ($self, $request) = @_;
 
     return $request->uri->path;
 }
 
 # The JSON we get back is good to store; there are no passwords or pesky
 # auto-increment fields to ignore.
Time-Verbal ( G/GU/GUGOD/Time-Verbal-1.1.1.tar.gz, GUGOD, 2021; MetaCPAN )
Time-Verbal/dev-bin/import-rails-i18n.pl ( view source; MetaCPAN )
ort translations from rails i18n project

use strict;
use warnings;
use utf8;
use YAML::Syck;
use JSON::PP;
use File::Find;
use FindBin;
use Cwd;

sub convert_one_locale {
    my ($code, $input_file, 
);

    for my $k (keys %lexicon) {
        $lexicon{$k} =~ s/%\{count\}/%1/g;
    }

    my $j = JSON::PP->new;
    open(my $fh, ">", $output_file) or die "$output_file: $!";
    print $fh $j->encode
 {
    /([^\/]+)\.yml/ or return;

    my $code = $1;
    my $output_file =  "$out_i18n_dir/$code.json";

    eval {
        convert_one_locale($code, $File::Find::name, $output_file);
        1;
    
Time-Verbal ( G/GU/GUGOD/Time-Verbal-1.1.1.tar.gz, GUGOD, 2021; MetaCPAN )
Time-Verbal/lib/Time/Verbal.pm ( view source; MetaCPAN )
his list as long as you also provide
a path (string) for C<i18n_dir> pointing to a directory with JSON files that
are recongized by L<Locale::Wolowitz>.

=head2 distance($from_time, $to_time)

Returns
 just a bunch of JSON text files that you can locate with this command:

    perl -MTime::Verbal -E 'say Time::Verbal->i18n_dir'

In case you need to provide your own translation JSON files, you may s
 "/app/awesome/i18n");

Your should start by copying and modify one of the JSON file under
C<Time::Verbal->i18n_dir>. The JSON file should be named after the
language code as a good convention, but th
Data-Cmp ( P/PE/PERLANCAR/Data-Cmp-0.010.tar.gz, PERLANCAR, 2021; MetaCPAN )
Data-Cmp/lib/Data/Cmp.pm ( view source; MetaCPAN )
e
each one then compare the serialized strings/bytes. There are many modules for
serialization: L<JSON>, L<YAML>, L<Sereal>, L<Data::Dumper>, L<Storable>,
L<Data::Dmp>, just to name a few.

Test modul
GraphQL-Plugin-Convert-MojoPubSub ( E/ET/ETJ/GraphQL-Plugin-Convert-MojoPubSub-0.02.tar.gz, ETJ, 2021; MetaCPAN )
GraphQL-Plugin-Convert-MojoPubSub/lib/GraphQL/Plugin/Convert/MojoPubSub.pm ( view source; MetaCPAN )
, until both have a notify_p
      $msg = { dateTime => $now, %$msg };
      $root_value->pubsub->json($_)->notify($_, $msg) for $msg->{channel}, FIREHOSE;
    }
    $now;
  };
  die $@ if $@;
  $resu
App-nioscli ( S/SS/SSMN/App-nioscli-0.001.tar.gz, SSMN, 2021; MetaCPAN )
App-nioscli/lib/App/nioscli/Commands/create_a_record.pm ( view source; MetaCPAN )
te_a_record::VERSION = '0.001';

# VERSION
# AUTHORITY

## use critic
use strictures 2;
use JSON qw(from_json);
use MooseX::App::Command;

extends qw(App::nioscli::Commands::create_host_record);

comm
name     => $self->name,
      ipv4addr => $self->address
    };

    $payload->{extattrs} = from_json( $self->extattrs ) if defined $self->extattrs;

    return $payload;
  }
);

has 'exe' => (
  is 
DNS-NIOS ( S/SS/SSMN/DNS-NIOS-0.005.tar.gz, SSMN, 2021; MetaCPAN )
DNS-NIOS/lib/DNS/NIOS/Response.pm ( view source; MetaCPAN )
e object
# VERSION
# AUTHORITY

## use critic
use strictures 2;
use Carp qw(croak);
use JSON qw(from_json to_json);
use Try::Tiny;
use namespace::clean;
use Class::Tiny qw( _http_response );

sub BUIL
->_http_response->is_success;
}

sub content {
  my $self = shift;
  my $h;
  try {
    $h = from_json( $self->_http_response->decoded_content );

  }
  catch {
    $h = $self->_http_response->decoded


sub json {
  my $self = shift;
  try {
    my $h = to_json( $self->content, @_ );
    return $h;
  };
  return to_json( { content => $self->content }, @_ );
}

sub pretty {
  return shift->json( { u
DNS-NIOS ( S/SS/SSMN/DNS-NIOS-0.005.tar.gz, SSMN, 2021; MetaCPAN )
DNS-NIOS/lib/DNS/NIOS.pm ( view source; MetaCPAN )
ing for NIOS
# VERSION
# AUTHORITY

## use critic
use strictures 2;

use Carp qw(croak);
use JSON qw(to_json);
use LWP::UserAgent;
use MIME::Base64 qw(encode_base64);
use URI;
use URI::QueryParam;
use

  $self->{ua}->default_header( 'Accept'       => 'application/json' );
  $self->{ua}->default_header( 'Content-Type' => 'application/json' );
  $self->{ua}->default_header( 'Authorization' => 'Basic 
l} . $path . $query_params );

  if ( $op eq 'PUT' or $op eq 'POST' ) {
    $request->content( to_json($payload) );
  }

  return DNS::NIOS::Response->new(
    _http_response => $self->{ua}->request($
CLI-Meta-YoutubeDl ( P/PE/PERLANCAR/CLI-Meta-YoutubeDl-0.002.tar.gz, PERLANCAR, 2021; MetaCPAN )
CLI-Meta-YoutubeDl/lib/CLI/Meta/YoutubeDl.pm ( view source; MetaCPAN )
ef,
        'write-description' => undef,
        'write-info-json' => undef,
        'write-annotations' => undef,
        'load-info-json=s' => {completion=>$comp_file},
        'cookies=s' => {comp
ename' => undef,
        'get-format' => undef,
        'dump-json|j' => undef,
        'dump-single-json|J' => undef,
        'print-json' => undef,
        'newline' => undef,
        'no-progress' 
App-lcpan-Manual ( P/PE/PERLANCAR/App-lcpan-Manual-1.065.000.tar.gz, PERLANCAR, 2021; MetaCPAN )
App-lcpan-Manual/lib/App/lcpan/Manual/Internals.pod ( view source; MetaCPAN )
his point, we haven't parsed distribution names yet because that will need
information from META.{json,yaml} inside the release files.

=head2 Third step: (release) files

Then we start to examine the
 allow us to check whether a distribution has a
distribution metadata file (F<META.yml> or F<META.json>), whether a distribution
contains scripts, and so on.

We populate the C<script> table by heuris
 e.g.:

 script/foo
 bin/whatever

We then extract the distribution metadata files (either F<META.json> or
F<META.yaml>) and store the information contained in these metadata files into
the database. 
Bencher-Scenario-Serializers ( P/PE/PERLANCAR/Bencher-Scenario-Serializers-0.161.tar.gz, PERLANCAR, 2021; MetaCPAN )
Bencher-Scenario-Serializers/lib/Bencher/Scenario/Serializers.pm ( view source; MetaCPAN )
    tags => ['json', 'serialize'],
            module => 'JSON::PP',
            function => 'encode_json',
            code_template => 'state $json = JSON::PP->new->allow_nonref; $json->encode(<data
   tags => ['json', 'deserialize'],
            module => 'JSON::PP',
            function => 'decode_json',
            code_template => 'state $json = JSON::PP->new->allow_nonref; $json->decode(<dat
  {
            tags => ['json', 'serialize'],
            module => 'JSON::Tiny',
            function => 'encode_json',
            code_template => 'JSON::Tiny::encode_json(<data>)',
        },
   
CLI-Meta-YtDlp ( P/PE/PERLANCAR/CLI-Meta-YtDlp-0.001.tar.gz, PERLANCAR, 2021; MetaCPAN )
CLI-Meta-YtDlp/lib/CLI/Meta/YtDlp.pm ( view source; MetaCPAN )
   'write-info-json!' => undef,
        'write-playlist-metafiles!' => undef,
        'clean-infojson!' => undef,
        'write-comments|get-comments!' => undef,
        'load-info-json=s' => {comple
ip-download|no-download' => undef,
        'print|O=s' => undef,
        'dump-json|j' => undef,
        'dump-single-json|J' => undef,
        'force-write-archive|force-download-archive' => undef,
 
App-nioscli ( S/SS/SSMN/App-nioscli-0.001.tar.gz, SSMN, 2021; MetaCPAN )
App-nioscli/lib/App/nioscli/Roles/Listable.pm ( view source; MetaCPAN )
able;
$App::nioscli::Roles::Listable::VERSION = '0.001';
## use critic
use strictures 2;
use JSON qw(to_json);
use MooseX::App::Role;
use Data::Dumper;

option 'max-results' => (
  is  => 'ro',
  isa 
 @results =
    map { $_->is_success ? @{ $_->content->{result} } : [] } @{$response};
  print to_json( \@results, { utf8 => 1, pretty => 1 } );
}

1;

__END__

=pod

=encoding UTF-8

=head1 NAME

App

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