Group
Extension

Matches 35358

SMS-Send-NANP-Twilio ( M/MR/MRDVT/SMS-Send-NANP-Twilio-0.06.tar.gz, MRDVT, 2022; MetaCPAN )
SMS-Send-NANP-Twilio/lib/SMS/Send/NANP/Twilio.pm ( view source; MetaCPAN )
package SMS::Send::NANP::Twilio;
use strict;
use warnings;
use URI;
use JSON::XS qw{decode_json};
use base qw{SMS::Send::Driver::WebService};

our $VERSION = '0.06';

=head1 NAME

SMS::Send::NANP::Twi
P::Twilio->new;
  my $success = $sms->send_sms(text=> 'Hello World!', to =>'+17035550123');
  my $json    = $sms->{__content};
  my $href    = $sms->{__data};

=head1 DESCRIPTION

SMS::Send driver for
success'};
  $self->{'__content'}    = $response->{'content'};
  my $data                = decode_json($response->{'content'});
  $self->{'__data'}       = $data;
  return $data->{'status'} eq $status
Alien-Build-Plugin-Download-GitHub ( P/PL/PLICEASE/Alien-Build-Plugin-Download-GitHub-0.10.tar.gz, PLICEASE, 2022; MetaCPAN )
Alien-Build-Plugin-Download-GitHub/lib/Alien/Build/Plugin/Download/GitHub.pm ( view source; MetaCPAN )
trict;
use warnings;
use 5.008001;
use Carp qw( croak );
use Path::Tiny qw( path );
use JSON::PP qw( decode_json );
use URI;
use Alien::Build::Plugin;
use Alien::Build::Plugin::Download::Negotiate;
us
$res->{content})
        {
          $rel = decode_json $res->{content};
        }
        elsif($res->{path})
        {
          $rel = decode_json path($res->{path})->slurp_raw;
        }
        e
Test-Mojo-Session ( A/AV/AVKHOZOV/Test-Mojo-Session-1.07.tar.gz, AVKHOZOV, 2022; MetaCPAN )
Test-Mojo-Session/lib/Test/Mojo/Session.pm ( view source; MetaCPAN )
ssion;

use Mojo::Base 'Test::Mojo';
use Mojo::Util qw(b64_decode hmac_sha1_sum);
use Mojo::JSON 'decode_json';

our $VERSION = '1.07';

sub new {
  my $self = shift->SUPER::new(@_);
  return $self;
}
$desc) = @_;
  $desc //= qq{session has value for JSON Pointer "$p"};
  my $session = $self->_extract_session;
  return $self->test('ok', !!Mojo::JSON::Pointer->new($session)->contains($p), $desc);
}
esc) = @_;
  $desc //= qq{session has no value for JSON Pointer "$p"};
  my $session = $self->_extract_session;
  return $self->test('ok', !Mojo::JSON::Pointer->new($session)->contains($p), $desc);
}
Chemistry-File-OPTIMADE ( M/ME/MERKYS/Chemistry-File-OPTIMADE-0.11.tar.gz, MERKYS, 2022; MetaCPAN )
Chemistry-File-OPTIMADE/lib/Chemistry/File/OPTIMADE.pm ( view source; MetaCPAN )
# VERSION
# $Id$

use strict;
use warnings;

use base 'Chemistry::File';

use Chemistry::Mol;
use JSON;
use List::Util qw( any );
use URL::Encode qw( url_params_multi );

my @mandatory_fields = qw( ca
ile::OPTIMADE->new( file => 'myfile.json' );
    my $mol = $file->read();

=cut

# Format is not registered, as OPTIMADE does not have proper file extension.
# .json is an option, but not sure if it w
    my $json = decode_json $s;

    if( $json->{meta} &&
        $json->{meta}{api_version} &&
        $json->{meta}{api_version} =~ /^[^01]\./ ) {
        warn 'OPTIMADE API version ' . $json->{meta}
Data-Chronicle ( B/BI/BINARY/Data-Chronicle-0.21.tar.gz, BINARY, 2022; MetaCPAN )
Data-Chronicle/lib/Data/Chronicle/Subscriber.pm ( view source; MetaCPAN )
r;

use 5.014;
use strict;
use warnings;
use Data::Chronicle;
use Date::Utility;
use JSON::MaybeUTF8 qw(encode_json_utf8);
use Moose;

=head1 NAME

Data::Chronicle::Subscriber - Provides callback subs
Exception-Reporter ( R/RJ/RJBS/Exception-Reporter-0.015.tar.gz, RJBS, 2022; MetaCPAN )
Exception-Reporter/lib/Exception/Reporter/Sender/Dir.pm ( view source; MetaCPAN )
 when practical, and a generated filename
#pod otherwise.
#pod
#pod =cut

use Digest::MD5 ();
use JSON ();
use Path::Tiny;
use String::Truncate;
use Try::Tiny;

sub new {
  my ($class, $arg) = @_;

  
              saw a simple error message; adds C<< "handled":true >>
#pod                  to the JSON body of the report
#pod
#pod C<%internal_arg> contains data produced by the Exception::Reporter u
e
#pod reporter.
#pod
#pod The return value of C<send_report> is not defined.
#pod
#pod =cut

my $JSON;

sub send_report {
  my ($self, $summaries, $arg, $internal_arg) = @_;

  # ?!? Presumably this 
BmltClient-ApiClient ( B/BM/BMLT/BmltClient-ApiClient-0.tar.gz, BMLT, 2022; MetaCPAN )
BmltClient-ApiClient/lib/BmltClient/Object/ServiceBodyPartialUpdate.pm ( view source; MetaCPAN )
:Object::ServiceBodyPartialUpdate;

require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
 my $self = shift;
    my $_hash = decode_json(JSON->new->convert_blessed->encode($self));

    return $_hash;
}

# used by JSON for serialization
sub TO_JSON {
    my $self = shift;
    my $_data = {
 my $_key (keys %{$self->attribute_map}) {
        if (defined $self->{$_key}) {
            my $_json_attribute = $self->attribute_map->{$_key};
            my $_type = $self->openapi_types->{$_key};
BmltClient-ApiClient ( B/BM/BMLT/BmltClient-ApiClient-0.tar.gz, BMLT, 2022; MetaCPAN )
BmltClient-ApiClient/lib/BmltClient/RootServerApi.pm ( view source; MetaCPAN )
tent-Type' header
    my $_header_accept = $self->{api_client}->select_header_accept('application/json');
    if ($_header_accept) {
        $header_params->{'Accept'} = $_header_accept;
    }
    $he
tent-Type' header
    my $_header_accept = $self->{api_client}->select_header_accept('application/json');
    if ($_header_accept) {
        $header_params->{'Accept'} = $_header_accept;
    }
    $he
/json');
    if ($_header_accept) {
        $header_params->{'Accept'} = $_header_accept;
    }
    $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json
Plack-Middleware-PrettyException ( D/DO/DOMM/Plack-Middleware-PrettyException-1.010.tar.gz, DOMM, 2022; MetaCPAN )
Plack-Middleware-PrettyException/lib/Plack/Middleware/PrettyException.pm ( view source; MetaCPAN )
 JSON

our $VERSION = '1.010'; # VERSION

use 5.010;
use strict;
use warnings;
use parent qw(Plack::Middleware);
use Plack::Util;
use Plack::Util::Accessor qw(force_json);
use HTTP::Headers;
use JSON:
:MaybeXS qw(encode_json);
use HTTP::Status qw(is_error);
use Scalar::Util 'blessed';
use Log::Any qw($log);

sub call {
    my $self = shift;
    my $env  = shift;

    my $r;
    my $error;
    my $e
ready is JSON, so return that
            if ( $orig_headers->content_type =~ m{application/json}i ) {
                return;
            }

            # force json, or client requested JSON, so ren
App-MysqlUtils ( P/PE/PERLANCAR/App-MysqlUtils-0.022.tar.gz, PERLANCAR, 2022; MetaCPAN )
App-MysqlUtils/lib/App/MysqlUtils.pm ( view source; MetaCPAN )
r, you can output as JSON.

Examples:

    # by default, show as pretty text table, like in interactive mysql client
    % mysql-query DBNAME "SELECT * FROM t1"

    # show as JSON (array of hashes)
 
   % mysql-query DBNAME "QUERY..." --json ;# or, --format json

    # show as CSV
    % mysql-query DBNAME "QUERY..." --format csv

    # show as CSV table using Text::Table::CSV
    % FORMAT_PRETTY_T
). Or, you can output as JSON.

Examples:

 # by default, show as pretty text table, like in interactive mysql client
 % mysql-query DBNAME "SELECT * FROM t1"
 
 # show as JSON (array of hashes)
 % my
Email-MIME-Kit-Validator-Rx ( R/RJ/RJBS/Email-MIME-Kit-Validator-Rx-0.200002.tar.gz, RJBS, 2022; MetaCPAN )
Email-MIME-Kit-Validator-Rx/lib/Email/MIME/Kit/Validator/Rx.pm ( view source; MetaCPAN )
lidator';
# ABSTRACT: validate assembly stash with Rx (from JSON in kit)

use Data::Rx 0.007;
use Data::Rx::TypeBundle::Perl 0.005;
use JSON;
use Moose::Util::TypeConstraints;
use Try::Tiny;

#pod =he
 in its simplest configuration.  It will look for a file called
#pod F<rx.json> in the kit and will load its contents (as JSON) and use them as a
#pod schema to validate the data passed to the it's C<
od
#pod This configuration supplies an alternate filename for the JSON file:
#pod
#pod   "validator": [ "Rx", { "path": "rx-schema.json" } ],
#pod
#pod This configuration supplies the schema definitio
BmltClient-ApiClient ( B/BM/BMLT/BmltClient-ApiClient-0.tar.gz, BMLT, 2022; MetaCPAN )
BmltClient-ApiClient/lib/BmltClient/Object/ServiceBodyBase.pm ( view source; MetaCPAN )
ltClient::Object::ServiceBodyBase;

require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
 my $self = shift;
    my $_hash = decode_json(JSON->new->convert_blessed->encode($self));

    return $_hash;
}

# used by JSON for serialization
sub TO_JSON {
    my $self = shift;
    my $_data = {
 my $_key (keys %{$self->attribute_map}) {
        if (defined $self->{$_key}) {
            my $_json_attribute = $self->attribute_map->{$_key};
            my $_type = $self->openapi_types->{$_key};
BmltClient-ApiClient ( B/BM/BMLT/BmltClient-ApiClient-0.tar.gz, BMLT, 2022; MetaCPAN )
BmltClient-ApiClient/lib/BmltClient/Object/UserUpdate.pm ( view source; MetaCPAN )
ge BmltClient::Object::UserUpdate;

require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
 my $self = shift;
    my $_hash = decode_json(JSON->new->convert_blessed->encode($self));

    return $_hash;
}

# used by JSON for serialization
sub TO_JSON {
    my $self = shift;
    my $_data = {
 my $_key (keys %{$self->attribute_map}) {
        if (defined $self->{$_key}) {
            my $_json_attribute = $self->attribute_map->{$_key};
            my $_type = $self->openapi_types->{$_key};
LINQ ( T/TO/TOBYINK/LINQ-0.003.tar.gz, TOBYINK, 2022; MetaCPAN )
LINQ/lib/LINQ.pm ( view source; MetaCPAN )
rs.
Hopefully this implementation will eventually cover other data types like
SQL tables, XML and JSON data, etc.

Not much is documented yet, but the test suite includes numerous examples
of LINQ's u
WWW-Spotify ( O/OA/OALDERS/WWW-Spotify-0.012.tar.gz, OALDERS, 2022; MetaCPAN )
WWW-Spotify/lib/WWW/Spotify.pm ( view source; MetaCPAN )
ta::Dumper      qw( Dumper );
use IO::CaptureOutput qw( capture );
use JSON::Path        ();
use JSON::MaybeXS     qw( decode_json );
use MIME::Base64      qw( encode_base64 );
use Types::Standard   q
ault => q{}
);

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

has 'grab_response_header' => (
    is      => 'rw',
    isa     => Int,
    default => 0
);
 Str,
    default => 'api'
);

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

has 'auto_json_decode' => (
    is      => 'rw',
    isa     => Int,
    default => 0
);

has 'last_result' => (
BmltClient-ApiClient ( B/BM/BMLT/BmltClient-ApiClient-0.tar.gz, BMLT, 2022; MetaCPAN )
BmltClient-ApiClient/lib/BmltClient/Object/Token.pm ( view source; MetaCPAN )
package BmltClient::Object::Token;

require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
 my $self = shift;
    my $_hash = decode_json(JSON->new->convert_blessed->encode($self));

    return $_hash;
}

# used by JSON for serialization
sub TO_JSON {
    my $self = shift;
    my $_data = {
 my $_key (keys %{$self->attribute_map}) {
        if (defined $self->{$_key}) {
            my $_json_attribute = $self->attribute_map->{$_key};
            my $_type = $self->openapi_types->{$_key};
BmltClient-ApiClient ( B/BM/BMLT/BmltClient-ApiClient-0.tar.gz, BMLT, 2022; MetaCPAN )
BmltClient-ApiClient/lib/BmltClient/Object/MeetingPartialUpdate.pm ( view source; MetaCPAN )
ent::Object::MeetingPartialUpdate;

require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
 my $self = shift;
    my $_hash = decode_json(JSON->new->convert_blessed->encode($self));

    return $_hash;
}

# used by JSON for serialization
sub TO_JSON {
    my $self = shift;
    my $_data = {
 my $_key (keys %{$self->attribute_map}) {
        if (defined $self->{$_key}) {
            my $_json_attribute = $self->attribute_map->{$_key};
            my $_type = $self->openapi_types->{$_key};
BmltClient-ApiClient ( B/BM/BMLT/BmltClient-ApiClient-0.tar.gz, BMLT, 2022; MetaCPAN )
BmltClient-ApiClient/lib/BmltClient/Object/NotFoundError.pm ( view source; MetaCPAN )
BmltClient::Object::NotFoundError;

require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
 my $self = shift;
    my $_hash = decode_json(JSON->new->convert_blessed->encode($self));

    return $_hash;
}

# used by JSON for serialization
sub TO_JSON {
    my $self = shift;
    my $_data = {
 my $_key (keys %{$self->attribute_map}) {
        if (defined $self->{$_key}) {
            my $_json_attribute = $self->attribute_map->{$_key};
            my $_type = $self->openapi_types->{$_key};
BmltClient-ApiClient ( B/BM/BMLT/BmltClient-ApiClient-0.tar.gz, BMLT, 2022; MetaCPAN )
BmltClient-ApiClient/lib/BmltClient/Role.pm ( view source; MetaCPAN )
get/openapi-generator-cli.jar generate \
  -i [URL or file path to JSON OpenAPI API spec] \
  -g perl \
  -c /path/to/config/file.json \
  -o /path/to/output/folder

Bang, all done. Run the C<autodoc>
DefHash ( P/PE/PERLANCAR/DefHash-2.0.1.tar.gz, PERLANCAR, 2022; MetaCPAN )
DefHash/lib/DefHash.pod ( view source; MetaCPAN )
Patch> (see L</"HISTORY">).

=head1 SPECIFICATION

In this document, hashes are written in JSON or pseudo-JSON (e.g. contains
ellipsis C<...> or JavaScript-style comments C<// ...> or dangling comma).

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