Group
Extension

Matches 35358

Finance-BankVal-UK ( U/UN/UNIFIEDSW/Finance-BankVal-UK-0.9.tar.gz, UNIFIEDSW, 2021; MetaCPAN )
Finance-BankVal-UK/lib/Finance/BankVal/UK.pm ( view source; MetaCPAN )
w(@params $size $account $error $sortcode $uid $pin &responseString $ua);
use LWP::UserAgent;
use JSON;

require Exporter;
our @ISA       = qw(Exporter);
our @EXPORT_OK = qw(bankValUK new);
our $VERSI
messages etc from the module, erors from the web servoce will be returned in $response string
my $json;    #holds the data to call the service with

#constructor
sub new {
	my $proto = shift;
	my $cla
q = HTTP::Request->new( 'POST', $url );
	$req->header( 'Content-Type' => 'application/json' );
	$req->content($json);
	my $response = $ua->request($req);

#Check the response code anything under 200 o
App-column-run ( P/PE/PERLANCAR/App-column-run-0.005.tar.gz, PERLANCAR, 2021; MetaCPAN )
App-column-run/lib/App/column/run.pm ( view source; MetaCPAN )
         summary => 'Compare JSON vs Perl Data::Dump vs YAML dump, side by side',
            src => 'cat ~/samples/bookstore.json | COLOR=1 column-run pp-json json2dd json2yaml',
            src_plan
mples/bookstore.json | COLOR=1 column-run --envs-arrays-json '[{"DATA_DUMP_COLOR_THEME":"Default256"},{"DATA_DUMP_COLOR_THEME":"Default16"}]' 'json2dd --dumper=Data::Dump::Color' 'json2dd --dumper=Dat
App-gqmt ( Z/ZE/ZEUS/App-gqmt/App-gqmt-1.02.tar.gz, ZEUS, 2021; MetaCPAN )
App-gqmt/lib/App/gqmt.pm ( view source; MetaCPAN )
se Pod::Usage    qw(pod2usage);
use File::Basename;
use HTTP::Request ();
use LWP::UserAgent;
use JSON;
use Time::Piece;
use Template;

my  @PROGARG = ($0, @ARGV);
our $VERSION = '1.02';

sub new {
  
 => $self->option('http_timeout'), );
  return $lwp;
}

sub jso {
  my $self = shift;
  my $jso = JSON->new->allow_nonref;
  return $jso;
}

sub run {
  my $self = shift;
  my $versions = [];

  p ( $
') > 2;

  $self->option('req')->header(Accept => 'application/vnd.github.package-deletes-preview+json');

  my $query;

  foreach ( keys( %{$arg->{del}} ) ) {
    $query = sprintf('mutation { deleteP
Mojolicious-Plugin-DBIC ( P/PR/PREACTION/Mojolicious-Plugin-DBIC-0.005.tar.gz, PREACTION, 2021; MetaCPAN )
Mojolicious-Plugin-DBIC/lib/Mojolicious/Plugin/DBIC/Controller/DBIC.pm ( view source; MetaCPAN )
 'first-post' }
#pod     # forward_to => '/1/first-post'
#pod
#pod Forwarding will not happen for JSON requests.
#pod
#pod =item properties
#pod
#pod Restrict this route to only setting the given prop
        json => {
                status => 400,
                json => {
                    errors => [
                        {
                            message => 'GET request for JSON invali
to(
            json => { json => { error => $error } },
            html => { row => $row, error => $error },
        );
        return;
    }

    return $c->respond_to(
        json => sub {
      
Web-Mention ( J/JM/JMAC/Web-Mention-0.721.tar.gz, JMAC, 2021; MetaCPAN )
Web-Mention/lib/Web/Mention.pm ( view source; MetaCPAN )
58;
use URI::Escape;
use Encode qw(decode_utf8);
use Readonly;
use DateTime::Format::ISO8601;
use JSON;

use Web::Microformats2::Parser;
use Web::Mention::Author;

our $VERSION = '0.721';

Readonly my
b as_json {
    my $self = shift;
    return JSON->new->convert_blessed->encode( $self );
}

sub new_from_json {
    my ($class, $json) = @_;
    return $class->FROM_JSON( JSON->new->decode( $json ) )
led by the JSON module during JSON encoding.
# Contrary to the (required) name, returns an unblessed reference, not JSON.
# See https://metacpan.org/pod/JSON#OBJECT-SERIALISATION
sub TO_JSON {
    my 
LINE-Notify-Simple ( H/HO/HOLLY/LINE-Notify-Simple-1.02.tar.gz, HOLLY, 2021; MetaCPAN )
LINE-Notify-Simple/lib/LINE/Notify/Simple.pm ( view source; MetaCPAN )
le;

use strict;
use warnings;
use utf8;
use feature qw(say);
use parent qw(Class::Accessor);
use JSON;
use Encode;
use Encode::Guess qw(euc-jp shiftjis 7bit-jis);
use LWP::UserAgent;
use HTTP::Reques
name =~ /^X\-.*/) {
			$rate_limit_headers->{lc($name)} = $res->header($name);
		}
	}

	my $ref = JSON->new->decode($res->content);

	return LINE::Notify::Simple::Response->new({ rate_limit_headers =>
Minion-Backend-API ( L/LT/LTM/Minion-Backend-API-1.00.tar.gz, LTM, 2021; MetaCPAN )
Minion-Backend-API/lib/Minion/Backend/API.pm ( view source; MetaCPAN )
|| [], shift || []);

    my $res = $self->ua->put(
        $self->_url . '/broadcast'
        => json => {
            command => $command,
            args    => $args,
            ids     => $ids
 
 undef, $self->slow);

    my $res = $self->ua->post(
        $self->_url . '/dequeue'
        => json => {
            id      => $id,
            wait    => $wait,
            options => $options,
 
 || [], shift || {});

    my $res = $self->ua->post(
        $self->_url . '/enqueue'
        => json => {
            task    => $task,
            args    => $args,
            options => $options
File-Serialize ( Y/YA/YANICK/File-Serialize-1.5.1.tar.gz, YANICK, 2021; MetaCPAN )
File-Serialize/lib/File/Serialize/Serializer/JSONY.pm ( view source; MetaCPAN )
package File::Serialize::Serializer::JSONY;
our $AUTHORITY = 'cpan:YANICK';
#ABSTRACT: JSONY serializer for File::Serialize
$File::Serialize::Serializer::JSONY::VERSION = '1.5.1';
use strict;
use warn
ze::Serializer';

sub extensions { qw/ jsony / };

sub serialize {
    my( $self, $data, $options ) = @_;
    serialize_file \my $output, $data, { format => 'json' };
    return $output;
}


sub deser
  my( $self, $data, $options ) = @_;
    JSONY->new->load($data);
}

1;

__END__

=pod

=encoding UTF-8

=head1 NAME

File::Serialize::Serializer::JSONY - JSONY serializer for File::Serialize

=head1 
Minion-Backend-API ( L/LT/LTM/Minion-Backend-API-1.00.tar.gz, LTM, 2021; MetaCPAN )
Minion-Backend-API/lib/Mojolicious/Plugin/Minion/API.pm ( view source; MetaCPAN )
 {
         my $c = shift;

         if ($c->req->json && $c->req->json->{tasks}) {
            $config->{minion}->tasks->{$_} = 1 for @{$c->req->json->{tasks}};
         }
    });

    # enable all o
     my $c = shift;

        my $command = $c->req->json->{command};
        my $args    = $c->req->json->{args};
        my $ids     = $c->req->json->{ids};

        &_render($c, $app->backend->broad
       my $c = shift;

        my $id      = $c->req->json->{id};
        my $wait    = $c->req->json->{wait};
        my $options = $c->req->json->{options};

        &_render($c, $app->backend->dequ
XXX ( I/IN/INGY/XXX-0.38.tar.gz, INGY, 2021; MetaCPAN )
XXX/lib/XXX.pm ( view source; MetaCPAN )
-with '$DumpModule'"
        unless $DumpModule =~ /^(
                                   (?:YAML|JSON)(?:::.*)?|
                                   Data::Dumper|
                                   Da
     (substr($DumpModule, 0, 4) eq 'YAML') ? 'yaml' :
        (substr($DumpModule, 0, 4) eq 'JSON') ? 'json' :
        ($DumpModule eq 'Data::Dumper') ? 'dumper' :
        ($DumpModule eq 'Data::Dump'
eturn &{"$DumpModule\::Dump"}(@_) . "...\n";
    }
    if ($dump_type eq 'json') {
        return &{"$DumpModule\::encode_json"}(@_);
    }
    if ($dump_type eq 'dumper') {
        local $Data::Dumpe
Catmandu-SRU ( V/VO/VOJ/Catmandu-SRU-0.430.tar.gz, VOJ, 2021; MetaCPAN )
Catmandu-SRU/lib/Catmandu/Fix/search_sru.pm ( view source; MetaCPAN )
1940-5758"}' | catmandu convert JSON to YAML --fix 'search_sru(issn,"http://services.dnb.de/sru/zdb")'

 $ echo '{"issn":"dnb.iss = 1164-5563"}' | catmandu convert JSON to YAML --fix 'search_sru(issn,
File-Serialize ( Y/YA/YANICK/File-Serialize-1.5.1.tar.gz, YANICK, 2021; MetaCPAN )
File-Serialize/lib/File/Serialize.pm ( view source; MetaCPAN )
data = { foo => 'bar' };

    serialize_file '/path/to/file.json' => $data;

    ...;

    $data_copy = deserialize_file '/path/to/file.json';

=head1 DESCRIPTION

I<File::Serialize> provides a common
L::Tiny>

=item JSON

L<File::Serialize::Serializer::JSON::MaybeXS>

=item TOML

L<File::Serialize::Serializer::TOML>

=item XML

L<File::Serialize::Serializer::XML::Simple>

=item jsony

L<File::Seri
alize::Serializer::JSONY>

=item Markdown

L<File::Serialize::Serializer::Markdown>

=back

=head1 OPTIONS

I<File::Serialize> recognizes a set of options that, if applicable,
will be passed to the se
XXX ( I/IN/INGY/XXX-0.38.tar.gz, INGY, 2021; MetaCPAN )
XXX/lib/XXX.pod ( view source; MetaCPAN )
with => 'JSON::Color';
    use XXX -with => 'JSON::SomeOtherJsonModule';

You can also use the environment variable C<PERL_XXX_DUMPER> to set the
module, for example;

    PERL_XXX_DUMPER=JSON::Color 
_XXX_DUMPER=YAML::PP::Highlight perl script.pl

Only modules with names beginning with 'YAML' or 'JSON', and the Data::Dumper,
Data::Dump, and Data::Dump::Color modules are supported.

If you need to 
Data-Dump-OneLine ( P/PE/PERLANCAR/Data-Dump-OneLine-0.080.tar.gz, PERLANCAR, 2021; MetaCPAN )
Data-Dump-OneLine/lib/Data/Dump/OneLine.pm ( view source; MetaCPAN )
ad1 SEE ALSO

L<JSON> should also encode to a single-line string, but some data structures
(cyclical, contains globs or other special Perl data) cannot be encoded out of
the box to JSON.

L<Data::Dump
Catmandu-SRU ( V/VO/VOJ/Catmandu-SRU-0.430.tar.gz, VOJ, 2021; MetaCPAN )
Catmandu-SRU/lib/Catmandu/Importer/SRU/Parser/mods.pm ( view source; MetaCPAN )
mandu::Importer::SRU::Parser::mods;

use Carp qw<carp>;
use Catmandu::Importer::MODS;
use Cpanel::JSON::XS;

use Moo;

our $VERSION = '0.430';

sub parse {
    my ($self, $record) = @_;

    my $xml =
 $mods->get_identifier->{_body};
        my $mods_record
            = Cpanel::JSON::XS->new->utf8->decode($mods->as_json());
        return {_id => $id, record => $mods_record->{mods}};
    }

    re
Catmandu-SRU ( V/VO/VOJ/Catmandu-SRU-0.430.tar.gz, HOCHSTEN, 2021; MetaCPAN )
Catmandu-SRU/lib/Catmandu/Importer/SRU/Parser/picaxml.pm ( view source; MetaCPAN )
recordData> as L<PICA XML|http://format.gbv.de/pica/xml> format and
returns L<PICA JSON|http://format.gbv.de/pica/json> structure as also implemented by
L<Catmandu::Importer::PICA>.

No validation is 
SQLite-KeyValueStore-Simple ( P/PE/PERLANCAR/SQLite-KeyValueStore-Simple-0.002.tar.gz, PERLANCAR, 2021; MetaCPAN )
SQLite-KeyValueStore-Simple/lib/SQLite/KeyValueStore/Simple.pm ( view source; MetaCPAN )
RIMARY KEY,
             value BLOB,
             encoding VARCHAR(1) NOT NULL -- r=raw/binary, j=json
         )',
    ],
};

sub _init {
    require DBI;
    require SQL::Schema::Versioned;

    my 
 if ($encoding eq 'j') {
        require JSON::MaybeXS;
        eval { $decoded = JSON::MaybeXS::decode_json($value) };
        return [500, "Can't decode JSON value: $@"] if $@;
    } elsif ($encodin
sif ($encoding eq 'j') {
        require JSON::MaybeXS;
        eval { $encoded = JSON::MaybeXS::encode_json($value) };
        return [500, "Can't encode JSON value: $@"] if $@;
    } else {
        
App-idxdb ( P/PE/PERLANCAR/App-idxdb-0.008.tar.gz, PERLANCAR, 2021; MetaCPAN )
App-idxdb/lib/App/idxdb.pm ( view source; MetaCPAN )
      },
    },
};
sub update {
    require DateTime;
    require DBIx::Util::Schema;
    require JSON::MaybeXS;

    my %args = @_;

    my $gd_path = $args{gudangdata_path};

    my $state = _init(\
            local $CWD = $year;
          FILENAME:
            for my $filename (reverse glob("*.json.gz")) {
                $filename =~ /^(\d{4})(\d{2})(\d{2})/ or die;
                log_trace "
, "gzip -cd $filename |" or die "Can't open $filename: $!";
                my $data = JSON::MaybeXS::decode_json(join("", <$fh>));
                $data = $data->[2]; $data = [] if ref $data ne 'ARRA
Backblaze-B2V2Client ( E/EC/ECHERNOF/Backblaze-B2V2Client-1.6.tar.gz, ECHERNOF, 2021; MetaCPAN )
Backblaze-B2V2Client/lib/Backblaze/B2V2Client.pm ( view source; MetaCPAN )
ding/downloading files

$Backblaze::B2V2Client::VERSION = '1.6';

# our dependencies:
use Cpanel::JSON::XS;
use Digest::SHA qw(sha1_hex);
use MIME::Base64;
use Path::Tiny;
use URI::Escape;
use WWW::Me
	# we want this to be 200
			$response_code = $response->{_rc};

			$self->{b2_response} = decode_json( $self->{mech}->content() );

		};

		# remove those special headers, cleaned-up for next time
		
url}, content => encode_json($args{post_params}) );

			# we want this to be 200
			$response_code = $response->code;

			# decode results
			$self->{b2_response} = decode_json( $self->{mech}->content
Pod-Simple-Words ( P/PL/PLICEASE/Pod-Simple-Words-0.07.tar.gz, PLICEASE, 2021; MetaCPAN )
Pod-Simple-Words/lib/Pod/Simple/Words.pm ( view source; MetaCPAN )
::Words;

use strict;
use warnings;
use 5.026;
use experimental qw( signatures );
use JSON::MaybeXS qw( encode_json );
use Text::HumanComputerWords 0.02;
use PPI;
use URI;
use base qw( Pod::Simple );
umanComputerWords->default_perl,
      ),
    );
  }
  $self->callback(sub {
    my $row = encode_json \@_;
    print "--- $row\n";
  });
  $self;
}


sub skip_sections ($self, @sections)
{
  $self->s

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