Group
Extension

Matches 35358

Module-cpmfile ( S/SK/SKAJI/Module-cpmfile-0.006.tar.gz, SKAJI, 2022; MetaCPAN )
Module-cpmfile/lib/Module/cpmfile.pm ( view source; MetaCPAN )
 Module::cpmfile helps you parse it.

The JSON Schema for cpmfile is available at L<jsonschema.json|https://github.com/skaji/cpmfile/blob/main/jsonschema.json>.

cpmfile will be used mainly by L<App::
HackaMol ( D/DE/DEMIAN/HackaMol-0.053.tar.gz, DEMIAN, 2022; MetaCPAN )
HackaMol/lib/HackaMol/Roles/PhysVecMVRRole.pm ( view source; MetaCPAN )
Carp;
#use Data::Structure::Util qw (unbless);
#use MooseX::Storage;

#with Storage( 'format' => 'JSON', 'io' => 'File' );

requires qw(_build_mass charge);

#MooseX::Storage::Engine->add_custom_type_
Mojo-Redis ( J/JH/JHTHORSEN/Mojo-Redis-3.29.tar.gz, JHTHORSEN, 2022; MetaCPAN )
Mojo-Redis/lib/Mojo/Redis/Cache.pm ( view source; MetaCPAN )
package Mojo::Redis::Cache;
use Mojo::Base -base;

use Mojo::JSON;
use Scalar::Util 'blessed';
use Storable    ();
use Time::HiRes ();

use constant OFFLINE => $ENV{MOJO_REDIS_CACHE_OFFLINE};

has con
|| $self->default_expire;
  my $key = join ':', '@M' => (ref($obj) || $obj), $method, Mojo::JSON::encode_json($args);

  return $self->compute_p($key, $expire, sub { $obj->$method(@$args) });
}

sub _


=head2 deserialize

  $cb   = $cache->deserialize;
  $cache = $cache->deserialize(\&Mojo::JSON::decode_json);

Holds a callback used to deserialize data from Redis.

=head2 namespace

  $str  = $cac
Telebot ( L/LI/LIOL/Telebot-0.01.tgz, LIOL, 2022; MetaCPAN )
Telebot/lib/Telebot/Plugin/Telegram.pm ( view source; MetaCPAN )
rAgent;
use Carp 'croak';
use Mojo::Util qw(camelize);
use Mojo::Collection qw(c);
use Mojo::JSON qw(to_json);
use Scalar::Util qw(blessed);
use Mojo::Loader qw(load_class load_classes);

has ['app', 
es->code == 200) {
            return $tx->res->json;
        }
        else {
            $self->app->dump($tx->res);
            return $tx->res->json || {
                ok => 0,
                d
_json($data->{$_}) : $data->{$_};
                } keys %$data),
                %$files,
            },
        );
    }
    else {
        return (
            {'Content-Type' => 'application/json'
Mojolicious-Plugin-OAuth2 ( J/JH/JHTHORSEN/Mojolicious-Plugin-OAuth2-2.02.tar.gz, JHTHORSEN, 2022; MetaCPAN )
Mojolicious-Plugin-OAuth2/lib/Mojolicious/Plugin/OAuth2/Mock.pm ( view source; MetaCPAN )
  require MIME::Base64;
  return $c->render(
    template => 'oauth2/mock/keys',
    format   => 'json',
    n        => MIME::Base64::encode_base64url($n->to_bin),
    e        => MIME::Base64::encod

    )->to_string
  );
}

sub _action_token_endpoint {
  my ($self, $c) = @_;
  return $c->render(json => {error => 'invalid_request'}, status => 500)
    unless (($c->param('client_secret') and $c->p
_KEY'}
  );

  return $c->render(
    template      => 'oauth2/mock/token',
    format        => 'json',
    id_token      => $id_token->expires(Mojo::JWT->now + 3600)->encode,
    refresh_token => $c
Mojolicious-Plugin-OAuth2 ( J/JH/JHTHORSEN/Mojolicious-Plugin-OAuth2-2.02.tar.gz, JHTHORSEN, 2022; MetaCPAN )
Mojolicious-Plugin-OAuth2/lib/Mojolicious/Plugin/OAuth2.pm ( view source; MetaCPAN )
e '200';
  return $tx->res->headers->content_type =~ m!^(application/json|text/javascript)(;\s*charset=\S+)?$!
    ? $tx->res->json
    : Mojo::Parameters->new($tx->res->body)->to_hash;
}

sub _warmup
a->get_p($provider->{well_known_url})->then(sub {
    my $tx  = shift;
    my $res = $tx->result->json;
    $provider->{authorize_url}   = $res->{authorization_endpoint};
    $provider->{end_session_u
})->then(sub {
    my $tx = shift;
    $provider->{jwt} = Mojo::JWT->new->add_jwkset($tx->result->json);
    return $provider;
  })->catch(sub {
    my $err = shift;
    $app->log->error("[OAuth2] Fai
Telebot ( L/LI/LIOL/Telebot-0.01.tgz, LIOL, 2022; MetaCPAN )
Telebot/lib/Telebot/Controller/Tg.pm ( view source; MetaCPAN )
 my $data = $c->req->json;
    $c->dump($data) if $c->app->config->{trace};
    if ($data->{update_id}) {
        $c->minion->enqueue(update => [$data]);
    }
    $c->render(json => {ok => \1});
}

s
Dist-Zilla-Plugin-Perinci-CmdLine ( P/PE/PERLANCAR/Dist-Zilla-Plugin-Perinci-CmdLine-0.002.tar.gz, PERLANCAR, 2022; MetaCPAN )
Dist-Zilla-Plugin-Perinci-CmdLine/lib/Dist/Zilla/Plugin/Perinci/CmdLine.pm ( view source; MetaCPAN )
eta->{summary};
}

# dzil also wants to get abstract for main module to put in dist's
# META.{yml,json}
sub before_build {
   my $self  = shift;
   my $name  = $self->zilla->name;
   my $class = $name
ETL-Pipeline ( R/RB/RBWOHLFAR/ETL-Pipeline-3.10-a.tar.gz, RBWOHLFAR, 2022; MetaCPAN )
ETL-Pipeline/lib/ETL/Pipeline.pm ( view source; MetaCPAN )
h.
This lets you very specifically traverse a complex data sturcture, such as those
from XML or JSON.

For a regular expression, B<get> matches hash keys at the top level of the data
structure pl

L<ETL::Pipeline::Input::Excel>, L<ETL::Pipeline::Input::DelimitedText>,
L<ETL::Pipeline::Input::JsonFiles>, L<ETL::Pipeline::Input::Xml>,
L<ETL::Pipeline::Input::XmlFiles>

=head1 REPOSITORY

L
ETL-Pipeline ( R/RB/RBWOHLFAR/ETL-Pipeline-3.10-a.tar.gz, RBWOHLFAR, 2022; MetaCPAN )
ETL-Pipeline/lib/ETL/Pipeline/Input/JsonFiles.pm ( view source; MetaCPAN )
::JsonFiles - Process JSON content from individual files

=head1 SYNOPSIS

  use ETL::Pipeline;
  ETL::Pipeline->new( {
    input   => ['JsonFiles', iname => qr/\.json$/i, records_at => '/json']
ocess;

=head1 DESCRIPTION

B<ETL::Pipeline::Input::JsonFiles> defines an input source that reads one or
more records from one or more JSON files. Most of the time, there should be one
record pe
er file too.

=cut

package ETL::Pipeline::Input::JsonFiles;

use 5.014000;
use warnings;

use Carp;
use Data::DPath qw/dpath/;
use JSON;
use Moose;


our $VERSION = '2.00';


=head1
Telebot ( L/LI/LIOL/Telebot-0.01.tgz, LIOL, 2022; MetaCPAN )
Telebot/lib/Telebot/Plugin/Telegram/UI.pm ( view source; MetaCPAN )
rAgent;
use Carp 'croak';
use Mojo::Util qw(camelize);
use Mojo::Collection qw(c);
use Mojo::JSON qw(to_json);
use Scalar::Util qw(blessed);
use Mojo::Loader qw(load_class load_classes);

has ['app'] 
Mojo-UserAgent-SecureServer ( J/JH/JHTHORSEN/Mojo-UserAgent-SecureServer-0.04.tar.gz, JHTHORSEN, 2022; MetaCPAN )
Mojo-UserAgent-SecureServer/lib/Mojo/UserAgent/SecureServer.pm ( view source; MetaCPAN )
c      = shift;
    my $handle = Mojo::IOLoop->stream($c->tx->connection)->handle;
    $c->render(json => {cn => $handle->peer_certificate('cn')});
  });

  my $t = Test::Mojo->new($app);
  $t->ua->in
->ua->server(Mojo::UserAgent::SecureServer->from_ua($t->ua));

  $t->get_ok('/')->status_is(200)->json_is('/cn', 'mojo.example.com');

=head1 DESCRIPTION

L<Mojo::UserAgent::SecureServer> allows you t
Azure-AD-Auth ( J/JL/JLMARTIN/Azure-AD-Auth-0.04.tar.gz, JLMARTIN, 2022; MetaCPAN )
Azure-AD-Auth/lib/Azure/AD/Password.pm ( view source; MetaCPAN )
Password;
  use Moo;
  use Azure::AD::Errors;
  use Types::Standard qw/Str Int InstanceOf/;
  use JSON::MaybeXS;
  use HTTP::Tiny;

  our $VERSION = '0.02';

  has ua_agent => (is => 'ro', isa => Str,
ntialsFailed',
        status => $auth_response->{ status }
      );
    }

    my $auth = decode_json($auth_response->{content});
    $self->current_creds($auth);
    $self->expiration($auth->{ expir
Telebot ( L/LI/LIOL/Telebot-0.01.tgz, LIOL, 2022; MetaCPAN )
Telebot/lib/Telebot/Plugin/Hooks.pm ( view source; MetaCPAN )
{template};
        return unless $c->accepts('json');
        return unless $template =~ /^exception(\.(development|production))?$/;
        $args->{json} = {code => 500, message => $c->config->{mode
Podman ( T/TS/TSCHAEFER/Podman-20220211.0.tar.gz, TSCHAEFER, 2022; MetaCPAN )
Podman/lib/Podman/Containers.pm ( view source; MetaCPAN )
f->names_only($opts{names_only});
  }

  my $containers = $self->get('containers/json', parameters => {all => 1})->json;
  my @list = map {
    my $name = $_->{Names}->[0] || $_->{Id};
    $self->name
Podman ( T/TS/TSCHAEFER/Podman-20220211.0.tar.gz, TSCHAEFER, 2022; MetaCPAN )
Podman/lib/Podman/Images.pm ( view source; MetaCPAN )
    $self->names_only($opts{names_only});
  }

  my $images = $self->get('images/json', parameters => {all => 1},)->json;
  my @list = map {
    my ($name) = split /:/, $_->{Names}->[0] || $_->{Id};
 
Podman ( T/TS/TSCHAEFER/Podman-20220211.0.tar.gz, TSCHAEFER, 2022; MetaCPAN )
Podman/lib/Podman/Client.pm ( view source; MetaCPAN )
se English qw( -no_match_vars );
use Mojo::Asset::File;
use Mojo::Asset::Memory;
use Mojo::JSON qw(encode_json);
use Mojo::URL;
use Mojo::UserAgent;
use Mojo::Util qw(url_escape);

use Podman::Excepti
>res->is_success;

  $tx = $self->_ua->get($base_url->path('version'));
  my $version = $tx->res->json->{Components}->[0]->{Details}->{APIVersion};

  say {*STDERR} "Potential insufficient supported P
 ? Mojo::Asset::File->new(path => $opts{data})
      : Mojo::Asset::Memory->new->add_chunk(encode_json($opts{data}));
    $tx->req->content->asset($asset);
  }
  $tx = $self->_ua->start($tx);

  Podma
Podman ( T/TS/TSCHAEFER/Podman-20220211.0.tar.gz, TSCHAEFER, 2022; MetaCPAN )
Podman/lib/Podman/Container.pm ( view source; MetaCPAN )

}

sub inspect {
  my $self = shift;

  my $data   = $self->get(sprintf "containers/%s/json", $self->name)->json;
  my $status = $data->{State}->{Status};
  $status = $status eq 'configured' ? 'creat
{
  my $self = shift;

  my $data  = $self->get('containers/stats', parameters => {stream => 0})->json;
  my $stats = first { $_->{Name} eq $self->name } @{$data->{Stats}};

  return unless $stats;
  
stemd {
  my $self = shift;

  my $data = $self->get(sprintf "generate/%s/systemd", $self->name)->json;

  return (values %{$data})[0];
}

for my $name (qw(pause restart start stop unpause)) {
  Mojo:
Podman ( T/TS/TSCHAEFER/Podman-20220211.0.tar.gz, TSCHAEFER, 2022; MetaCPAN )
Podman/lib/Podman/Image.pm ( view source; MetaCPAN )
name);
}

sub inspect {
  my $self = shift;

  my $data = $self->get(sprintf "images/%s/json", $self->name)->json;
  my $tag  = (split /:/, $data->{RepoTags}->[0])[1];

  return {Tag => $tag, Id => $d
Repo-RPM ( K/KX/KXRCL/Repo-RPM-0.01.tar.gz, KXRCL, 2022; MetaCPAN )
Repo-RPM/lib/Repo/RPM.pm ( view source; MetaCPAN )
}

  return %tree;
}


################################################################
#
# print JSON tree into file:
#

my $tree_depth  = 2;
my $tree_height = 0;
my $root_node   = 1;

my $distro_nam

#   $file   - output file name .
#
# Returns:
#   $width, $height of requires tree .
#
sub print_json_tree
{
  my $repo = shift;
  my $tree = shift;
  my $file = shift;

  my $fhandle;

  if( ref( $r
  return 0, 0;
  }

  open( $fhandle, "> $file" );
  if( ! $fhandle )
  {
    print STDERR "print_json_tree: cannot open file: " . $file . "\n";
    return 0, 0;
  }

  $tree_depth  = 2;
  $tree_heigh

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