Group
Extension

Matches 35358

Perlgram-Bot ( A/AM/AMIRCANDY/Perlgram-Bot-0.tar.gz, AMIRCANDY, 2024; MetaCPAN )
Perlgram-Bot/lib/Perlgram/Bot/core.pm ( view source; MetaCPAN )
use HTTP::Request;
use JSON;
use strict;
use warnings;
use Data::Dumper;

sub new {
    my ($class, $token) = @_;
    my $ua = LWP::UserAgent->new;
    my $json = JSON->new->allow_nonref;
  
  my $self = { token => $token , requ => $ua , json => $json };
    bless $self, $class;
    return $self;
}


sub _remove_undef_keys_recursive {
    my ($data) = @_;

    if (ref $data eq 'H
 . $method, $filtered_data);
    my $content = $response->decoded_content;

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





sub setWebhook {
    my ($self, $url, $ip_address, $max_connec
Text-Chart ( P/PE/PERLANCAR/Text-Chart-0.042.tar.gz, PERLANCAR, 2024; MetaCPAN )
Text-Chart/lib/Text/Chart.pm ( view source; MetaCPAN )
        }
            push @resrows, $resrow;
        }
        require JSON::MaybeXS;
        $buf = JSON::MaybeXS::encode_json([200, "OK", \@resrows]);

    } elsif ($type eq 'bar') {
        $chart
a L<tchart> (from L<App::tchart>) CLI:

 % tchart -d sales -t sparkline < celine-dion-album-sales.json
 ▂▂▅██▄▄▂▁▂▁

B<Horizontal sparkline chart:>

 XXX

C<Plotting multiple dat
Acme-CPANModules-WorkingWithCSV ( P/PE/PERLANCAR/Acme-CPANModules-WorkingWithCSV-0.003.tar.gz, PERLANCAR, 2024; MetaCPAN )
Acme-CPANModules-WorkingWithCSV/lib/Acme/CPANModules/WorkingWithCSV.pm ( view source; MetaCPAN )
s>

*XLS* and *XLSX*: <prog:csv2tsv> and <prog:tsv2csv> from <pm:App::CSVUtils>

*JSON*: <prog:csv2json> and <prog:json2csv> from <pm:App::TextTableUtils>

*Markdown table*: <prog:csv2mdtable> from <p
p::LTSVUtils>

I<XLS> and I<XLSX>: L<csv2tsv> and L<tsv2csv> from L<App::CSVUtils>

I<JSON>: L<csv2json> and L<json2csv> from L<App::TextTableUtils>

I<Markdown table>: L<csv2mdtable> from L<App::Text
Pod-Weaver-Plugin-Bencher-Scenario ( P/PE/PERLANCAR/Pod-Weaver-Plugin-Bencher-Scenario-0.253.tar.gz, PERLANCAR, 2024; MetaCPAN )
Pod-Weaver-Plugin-Bencher-Scenario/lib/Pod/Weaver/Plugin/Bencher/Scenario.pm ( view source; MetaCPAN )
   ) }

use Bencher::Backend;
use Data::Dmp;
use File::Slurper qw(read_text);
use File::Temp;
use JSON::MaybeXS;
use Perinci::Result::Format::Lite;
use Perinci::Sub::Normalize qw(normalize_function_me
ine} = $cmd;
                } elsif ($res->{file}) {
                    $res->{result} = decode_json(read_text($res->{file}));
                } else {
                    $self->log_fatal(["Invalid
rgs>
(hash arguments for bencher()) or C<file> (instead of running bencher(), use the
result from JSON file). Can be specified multiple times.

=head2 bench => bool (default: 1)

Set to 0 if you do no
App-fsql ( P/PE/PERLANCAR/App-fsql-0.233.tar.gz, PERLANCAR, 2024; MetaCPAN )
App-fsql/lib/App/fsql.pm ( view source; MetaCPAN )
 queries against {CSV/TSV/LTSV/JSON/YAML files,TableData modules}

__END__

=pod

=encoding UTF-8

=head1 NAME

App::fsql - Perform SQL queries against {CSV/TSV/LTSV/JSON/YAML files,TableData modules}
WWW-Suffit-Plugin-ConfigAuth ( A/AB/ABALAMA/WWW-Suffit-Plugin-ConfigAuth-1.00.tar.gz, ABALAMA, 2024; MetaCPAN )
WWW-Suffit-Plugin-ConfigAuth/lib/WWW/Suffit/Plugin/ConfigAuth.pm ( view source; MetaCPAN )
gauth.init

    my $init = $self->configauth->init;

This method returns the init object (L<Mojo::JSON::Pointer>)
that contains data of initialization:

    {
        error       => '...',       # Err

    }

This helper performs authentication backend subprocess and returns
result object (L<Mojo::JSON::Pointer>) that contains data structure:

    {
        error       => '',          # Error messa
;
    }

This helper performs authorization backend subprocess and returns
result object (L<Mojo::JSON::Pointer>) that contains data structure:

    {
        error       => '',          # Error messa
Service-Engine ( R/RB/RBUSH/Service-Engine-0.49.tar.gz, RBUSH, 2024; MetaCPAN )
Service-Engine/lib/Service/Engine/Health/Backlog.pm ( view source; MetaCPAN )
age Service::Engine::Health::Backlog;

use 5.010;
use strict;
use warnings;
use Data::Dumper;
use JSON;

use Service::Engine;

our $Config;
our $Log;
our $Threads;
our $EngineName;
our $EngineInstance
Service-Engine ( R/RB/RBUSH/Service-Engine-0.49.tar.gz, RBUSH, 2024; MetaCPAN )
Service-Engine/lib/Service/Engine/Health/Memory.pm ( view source; MetaCPAN )
kage Service::Engine::Health::Memory;

use 5.010;
use strict;
use warnings;
use Data::Dumper;
use JSON;

use Service::Engine;

our $Config;
our $Log;
our $Threads;
our $EngineName;
our $EngineInstance
Perlgram-Bot ( A/AM/AMIRCANDY/Perlgram-Bot-0.tar.gz, AMIRCANDY, 2024; MetaCPAN )
Perlgram-Bot/lib/Perlgram/Bot/keyboard.pm ( view source; MetaCPAN )
package Perlgram::Bot::keyboard;

use JSON::MaybeXS;
use Data::Dumper;

sub _remove_undef_keys_recursive {
    my ($data) = @_;

    if (ref $data eq 'HASH') {
        my %filtered_data;

 
//= undef;
    $input_field_placeholder //= undef;
    $selective //= undef;
    return encode_json(_remove_undef_keys_recursive({
        keyboard                => $keyboard,
        resize_key
WWW-Suffit-Plugin-FileAuth ( A/AB/ABALAMA/WWW-Suffit-Plugin-FileAuth-1.00.tar.gz, ABALAMA, 2024; MetaCPAN )
WWW-Suffit-Plugin-FileAuth/lib/WWW/Suffit/Plugin/FileAuth.pm ( view source; MetaCPAN )
ileauth.init

    my $init = $self->fileauth->init;

This method returns the init object (L<Mojo::JSON::Pointer>)
that contains data of initialization:

    {
        error       => '...',       # Err

    }

This helper performs authentication backend subprocess and returns
result object (L<Mojo::JSON::Pointer>) that contains data structure:

    {
        error       => '',          # Error messa
;
    }

This helper performs authorization backend subprocess and returns
result object (L<Mojo::JSON::Pointer>) that contains data structure:

    {
        error       => '',          # Error messa
Data-Structure-Deserialize-Auto ( T/TY/TYRRMINAL/Data-Structure-Deserialize-Auto-1.01.tar.gz, TYRRMINAL, 2024; MetaCPAN )
Data-Structure-Deserialize-Auto/lib/Data/Structure/Deserialize/Auto.pm ( view source; MetaCPAN )
uctures from perl, JSON, YAML, or TOML data, from strings or files

=encoding UTF-8
 
=head1 NAME
 
Data::Structure::Deserialize::Auto - deserializes data structures from perl, JSON, YAML, or TOML dat
ze);

    my $str = '{"db": {"host": "localhost"}}';
    my $ds = deserialize($str); #autodetects JSON
    say $ds->{db}->{host}; # localhost

    # OR 

    $str = <<'END';
    options:
      autosav
cture::Deserialize::Auto> is a module for converting a string in an
arbitrary format (one of perl/JSON/YAML/TOML) into a perl data structure, without 
needing to worry about what format it was in.

If
Service-Engine ( R/RB/RBUSH/Service-Engine-0.49.tar.gz, RBUSH, 2024; MetaCPAN )
Service-Engine/lib/Service/Engine/Utility/Twilio/API.pm ( view source; MetaCPAN )
 with all the details. Besides, you can
also opt to have Twilio send its responses to you in CSV, JSON, or
HTML.

=head2 Using WWW::Twilio::API

Now that we have a basic understanding of how Twilio's 
', 'json', or 'html' (any representation found at
http://www.twilio.com/docs/api/rest/tips) to the Twilio API call:

  ## return JSON in $response->{content}
  $response = $twilio->POST('Calls.json',

  ## view a list of calls we've made
  $response = $twilio->GET('Calls.json');
  print $response->{content};  ## this is a JSON document

  ## view one particular call we've made
  $response = $twili
WWW-PGXN ( D/DW/DWHEELER/WWW-PGXN-v0.13.0.tar.gz, DWHEELER, 2024; MetaCPAN )
WWW-PGXN/lib/WWW/PGXN.pm ( view source; MetaCPAN )
WW::PGXN::User;
use WWW::PGXN::Tag;
use WWW::PGXN::Mirror;
use HTTP::Tiny;
use URI::Template;
use JSON ();
use Carp;

our $VERSION = v0.13.0;

sub new {
    my($class, %params) = @_;
    my $self = bl
elf;
}

sub get_distribution {
    my ($self, $dist, $version) = @_;
    my $data = $self->_fetch_json(
        (defined $version ? 'meta' : 'dist'),
        { dist => lc $dist, version => lc($version
_fetch_json(extension => { extension => lc $ext })
        or return;
    WWW::PGXN::Extension->new($self, $data);
}

sub get_user {
    my ($self, $user) = @_;
    my $data = $self->_fetch_json(user 
Bencher ( P/PE/PERLANCAR/Bencher-1.062.4.tar.gz, PERLANCAR, 2024; MetaCPAN )
Bencher/lib/Bencher.pm ( view source; MetaCPAN )
then started using the appropriate perl interpreter, runs the
scenario, and returns the result as JSON. The original Bencher process then
collects and combines the per-interpreter results into the fin
WWW-PGXN ( D/DW/DWHEELER/WWW-PGXN-v0.13.0.tar.gz, DWHEELER, 2024; MetaCPAN )
WWW-PGXN/lib/WWW/PGXN/Distribution.pm ( view source; MetaCPAN )
ls = $rel->{stable} || $rel->{testing} || $rel->{unstable};
    my $meta = $self->{_pgxn}->_fetch_json(meta => {
        version => lc $rels->[0]{version},
        dist    => lc $self->{name},
    }) 
{ $meta };
}

sub _merge_by_dist {
    my $self = shift;
    my $by_dist = $self->{_pgxn}->_fetch_json(dist => {
        dist => lc $self->{name}
    }) || {};
    @{$self}{keys %{ $by_dist }} = value
list of special files in the distribution, such as C<Changes>,
C<README>, C<Makefile>, and C<META.json>, among others. Available only from an
API server. Returns an empty list for distributions fetche
Service-Engine ( R/RB/RBUSH/Service-Engine-0.49.tar.gz, RBUSH, 2024; MetaCPAN )
Service-Engine/lib/Service/Engine/Logging.pm ( view source; MetaCPAN )
;
use JSON;

use Service::Engine;

our $Config;
our $Log;
our $Data;

our $Log_to_file = '';
our $Log_to_console = 1;
our $Log_to_data = {};
our $EngineName;
our $EngineInstance;
our $JSON = JSON->new
key};
        if (ref($value) eq 'HASH' || ref($value) eq 'ARRAY') {
            $data->{$key} = $JSON->encode($value);
        } elsif (ref($value) eq 'SCALAR') {
            $data->{$key} = $$value;
Service-Engine ( R/RB/RBUSH/Service-Engine-0.49.tar.gz, RBUSH, 2024; MetaCPAN )
Service-Engine/lib/Service/Engine/Health/Threads.pm ( view source; MetaCPAN )
age Service::Engine::Health::Threads;

use 5.010;
use strict;
use warnings;
use Data::Dumper;
use JSON;

use Service::Engine;

our $Config;
our $Log;
our $Threads;
our $EngineName;
our $EngineInstance
Service-Engine ( R/RB/RBUSH/Service-Engine-0.49.tar.gz, RBUSH, 2024; MetaCPAN )
Service-Engine/lib/Service/Engine/Health.pm ( view source; MetaCPAN )
e Module::Runtime qw(require_module);

use Service::Engine;
use threads;
use threads::shared;
use JSON;

our $Config;
our $Log;
our $Data;
our $EngineName;
our $EngineInstance;
our $Threads;
our $Chec
f, $fh) = @_;
    
    my $data = $self->overview(undef,1);
    my $json = JSON->new->allow_nonref;
    my $json_string = eval{$json->encode( $data )};
    $Log->log({'msg'=>"$@",'level'=>2}) if $@;
 
   if ($fh) {
    	$Log->log({msg=>"i think I have a fh in api_overview",level=>3});
        $fh->write($json_string);
    } else {
        return $json_string;
    }
    
}



1;
Service-Engine ( R/RB/RBUSH/Service-Engine-0.49.tar.gz, RBUSH, 2024; MetaCPAN )
Service-Engine/lib/Service/Engine/API/Server.pm ( view source; MetaCPAN )

use base qw(Net::Server::HTTP);
use Data::Dumper;
use JSON;
use CGI;

sub process_http_request {

    my $self = shift;
    
    my $json = JSON->new->allow_nonref;
    
    my $content = '';
    my 
rd'};
    if ($api_password && ($form->{'password'} ne $api_password)) {
        $content = eval{$json->encode( {'error'=>"access denied"} )};
    } else {
        my $allowed_resources = $self->{'Con
lit /\//, $path;
    	warn("trying $module: $method : $params"); 
    	 
        $content = eval{$json->encode( {'error'=>"unknown resource $path"} )};
    
        if ($module && $method && $allowed_
Service-Engine ( R/RB/RBUSH/Service-Engine-0.49.tar.gz, RBUSH, 2024; MetaCPAN )
Service-Engine/lib/Service/Engine/Health/Throughput.pm ( view source; MetaCPAN )
 Service::Engine::Health::Throughput;

use 5.010;
use strict;
use warnings;
use Data::Dumper;
use JSON;

use Service::Engine;

our $Config;
our $Log;
our $Threads;
our $EngineName;
our $EngineInstance

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