Group
Extension

Matches 35358

WebService-UK-Parliament ( L/LN/LNATION/WebService-UK-Parliament-1.01.tar.gz, LNATION, 2025; MetaCPAN )
WebService-UK-Parliament/lib/WebService/UK/Parliament/OralQuestions.pm ( view source; MetaCPAN )
ionsandmotions-api.parliament.uk/swagger/docs/v1";

has private_url => "swagger/oralquestions-api.json";

has base_url => 'https://oralquestionsandmotions-api.parliament.uk/';

1;

__END__

=head1 NAM
WebService-UK-Parliament ( L/LN/LNATION/WebService-UK-Parliament-1.01.tar.gz, LNATION, 2025; MetaCPAN )
WebService-UK-Parliament/lib/WebService/UK/Parliament/Base.pm ( view source; MetaCPAN )
package WebService::UK::Parliament::Base;

use Mojo::Base -base;
use Mojo::JSON qw/decode_json/;
use Mojo::UserAgent;

use OpenAPI::Client;

has "client";

has "private";

sub new {
  	my $class = shi
self->generate_operation_ids(decode_json($content));
}

sub read_url {
	my ($self, $url) = @_;
	my $ua  = Mojo::UserAgent->new;
	my $res = $ua->get($url)->res->json;
	return $self->generate_operation_
$self->client->call($path, $params ? $params : (), $content ? $content : ());
	return $data->res->json;
}

sub AUTOLOAD {
	my ($self) = shift;
	my $classname =  ref $self;
        my $validname = '[a-
Mojolicious-Plugin-WithCSRFProtection ( I/IS/ISHIGAKI/Mojolicious-Plugin-WithCSRFProtection-1.02.tar.gz, ISHIGAKI, 2025; MetaCPAN )
Mojolicious-Plugin-WithCSRFProtection/lib/Mojolicious/Plugin/WithCSRFProtection.pm ( view source; MetaCPAN )
ion

In this example we have a hypothetical Mojolicious application that uses jQuery
to POST some JSON to the server.  To provide CSRF protection we make use of the
C<X-CSRF-Token> header.

It's possi
 headers on each request:

   <script>
      $.ajaxSetup({ headers:
   %  use Mojo::JSON qw( to_json );
   %= to_json({ 'X-CSRF-Token' => $c->crsf_token })
      });
   </script>

Once you've done thi
Parse-HTTP-UserAgent ( B/BU/BURAK/Parse-HTTP-UserAgent-0.43.tar.gz, BURAK, 2025; MetaCPAN )
Parse-HTTP-UserAgent/lib/Parse/HTTP/UserAgent/Base/Dumper.pm ( view source; MetaCPAN )
r qw( unknown );
    return \%struct;
}

sub _dumper_json {
    my $self = shift;
    my $opt  = shift;
    require JSON;
    return  JSON::to_json(
                $self->_dump_to_struct,
           
dbd_mock_dump_data ( U/UX/UXYZAB/dbd_mock_dump_data-.tar.gz, UXYZAB, 2025; MetaCPAN )
dbd_mock_dump_data/lib/DBD/Mock/Session/GenerateFixtures.pm ( view source; MetaCPAN )
);
use Cpanel::JSON::XS;
use File::Slurper qw (read_text);
use File::Spec;
use Readonly;
use Data::Walk;
use Try::Tiny;

our $VERSION = 0.10;

our $override;
my $JSON_OBJ = Cpanel::JSON::XS->new()->ut
fixtures);
		$self->_set_mock_dbh($fixtures);
	} elsif (-e $self->{fixture_file}) {
		my $data = $JSON_OBJ->decode(read_text($self->{fixture_file}));
		$self->_process_mock_data($data);
		$self->_set_
($directory . $FIXTURE_DIR);
		my $default_fixture_file = $directory . $FIXTURE_DIR . "$test_file.json";
		$self->{fixture_file} = $default_fixture_file;
	}

	return $self;
}

sub _validate_args {
	my
Parser-FIT ( G/GH/GHANDI/Parser-FIT-0.1.tar.gz, GHANDI, 2025; MetaCPAN )
Parser-FIT/build-profile.pl ( view source; MetaCPAN )
!/usr/bin/env perl

use strict;
use warnings;
use feature 'say';
use Text::CSV qw(csv);
use Mojo::JSON qw/j/;
use Data::Dumper;
use Getopt::Long;

my $forceEnabled = undef;
GetOptions("force" => \$for
WebService-UK-Parliament ( L/LN/LNATION/WebService-UK-Parliament-1.01.tar.gz, LNATION, 2025; MetaCPAN )
WebService-UK-Parliament/lib/WebService/UK/Parliament/StatutoryInstruments.pm ( view source; MetaCPAN )
 "https://statutoryinstruments-api.parliament.uk/swagger/v1/swagger.json";

has private_url => "swagger/statutoryinstruments-api.json";

has base_url => 'https://statutoryinstruments-api.parliament.uk
WebService-UK-Parliament ( L/LN/LNATION/WebService-UK-Parliament-1.01.tar.gz, LNATION, 2025; MetaCPAN )
WebService-UK-Parliament/lib/WebService/UK/Parliament/ErskineMay.pm ( view source; MetaCPAN )
s public_url => "https://erskinemay-api.parliament.uk/swagger/v1/swagger.json";

has private_url => "swagger/erskinemay-api.json";

has base_url => 'https://erskinemay-api.parliament.uk/';

1;

__END_
Langertha ( G/GE/GETTY/Langertha-0.008.tar.gz, GETTY, 2025; MetaCPAN )
Langertha/ex/structured_sentences.pl ( view source; MetaCPAN )
UTF-8)';
use strict;
use warnings;
use Data::Dumper;
use JSON::MaybeXS;
use Carp qw( croak );
use DDP;

use Langertha::Engine::Ollama;

my $jsonschema = {
  type => 'object',
  properties => {
    sen
ect verb object )],
        additionalProperties => JSON->false,
      },
    },
  },
  required => [qw( sentences )],
  additionalProperties => JSON->false,
};

if ($ENV{OLLAMA_URL}) {

  my $ollama 
S response in JSON.

  );

  my $structured = $ollama->openai( response_format => {
    type => "json_schema",
    json_schema => {
      name => "sentences_schema",
      schema => $jsonschema,
     
Termux-API ( L/LN/LNATION/Termux-API-1.01.tar.gz, LNATION, 2025; MetaCPAN )
Termux-API/lib/Termux/API.pm ( view source; MetaCPAN )
package Termux::API;
use strict;
use warnings;
use JSON;

our $VERSION = '1.01';

sub new {
	return bless( {
		j => JSON->new
	}, $_[0] );
}

sub command {
	my $command = qx($_[1]);
	return eval { $_[
Map-Tube-Madrid ( M/MA/MANWAR/Map-Tube-Madrid-0.42.tar.gz, MANWAR, 2025; MetaCPAN )
Map-Tube-Madrid/lib/Map/Tube/Madrid.pm ( view source; MetaCPAN )
reDir ':ALL';

use Moo;
use namespace::autoclean;

has json => (is => 'ro', default => sub { return dist_file('Map-Tube-Madrid', 'madrid-map.json') });
with 'Map::Tube';

=head1 DESCRIPTION

Built and
POE-Component-Metabase-Client-Submit ( B/BI/BINGOS/POE-Component-Metabase-Client-Submit-0.16.tar.gz, BINGOS, 2025; MetaCPAN )
POE-Component-Metabase-Client-Submit/lib/POE/Component/Metabase/Client/Submit.pm ( view source; MetaCPAN )
TTP::Request::Common ();
use HTTP::Message 5.814 (); # for HTTP::Message::decodable() support
use JSON::MaybeXS;
use POE qw[Component::Client::HTTP Component::Client::Keepalive];
use URI;

my @valid_a
coding' => $can_decode) : () ),
    Content_Type => 'application/json',
    Accept       => 'application/json',
    Content      => JSON->new->encode($fact->as_struct),
  );
  $req->authorization_basi
coding' => $can_decode) : () ),
    Content_Type => 'application/json',
    Accept       => 'application/json',
    Content      => JSON->new->encode([
      $self->profile->as_struct, $self->secret->
POE-Component-Metabase-Relay-Server ( B/BI/BINGOS/POE-Component-Metabase-Relay-Server-0.40.tar.gz, BINGOS, 2025; MetaCPAN )
POE-Component-Metabase-Relay-Server/lib/POE/Component/Metabase/Relay/Server.pm ( view source; MetaCPAN )
                      ();
use Storable                  ();
use Socket                    ();
use JSON                      ();
use Metabase::User::Profile   ();
use Metabase::User::Secret    ();

my 
::confess __PACKAGE__. ": could not read ID file '" . $self->id_file
    . "'\n$!";

  my $data = JSON->new->decode( do { local $/; <$fh> } );

  my $profile = eval { Metabase::User::Profile->from_str
Map-Tube-London ( M/MA/MANWAR/Map-Tube-London-1.42.tar.gz, MANWAR, 2025; MetaCPAN )
Map-Tube-London/lib/Map/Tube/London.pm ( view source; MetaCPAN )
;
use namespace::autoclean;

has json => (is => 'lazy');
has skip => (is => 'lazy');
with 'Map::Tube';

sub _build_json { dist_file('Map-Tube-London', 'london-map.json') }
sub _build_skip {
    return
Map-Tube-Kolkatta ( M/MA/MANWAR/Map-Tube-Kolkatta-0.34.tar.gz, MANWAR, 2025; MetaCPAN )
Map-Tube-Kolkatta/lib/Map/Tube/Kolkatta.pm ( view source; MetaCPAN )
Dir ':ALL';

use Moo;
use namespace::autoclean;

has json => (is => 'ro', default => sub { return dist_file('Map-Tube-Kolkatta', 'kolkatta-map.json') });

with 'Map::Tube';

=head1 DESCRIPTION

The Ko
GDPR-IAB-TCFv2 ( P/PA/PACMAN/GDPR-IAB-TCFv2-0.203.tar.gz, PACMAN, 2025; MetaCPAN )
GDPR-IAB-TCFv2/lib/GDPR/IAB/TCFv2.pm ( view source; MetaCPAN )
     json   => $opts{json} || {},
        strict => $strict,
    );

    $options{json}->{date_format}    ||= DATE_FORMAT_ISO_8601;
    $options{json}->{boolean_values} ||= [ _json_false(), _json_true
poch, $nanoseconds ) = @_;

    return $epoch if !!$self->{options}->{json}->{use_epoch};

    my $format = $self->{options}->{json}->{date_format};

    return $format->( $epoch, $nanoseconds ) if re
, gmtime($epoch) );
}

sub _json_true { 1 == 1 }

sub _json_false { 1 == 0 }

sub _format_json_subsection {
    my ( $self, @data ) = @_;

    if ( !!$self->{options}->{json}->{compact} ) {
        re
Map-Tube-Delhi ( M/MA/MANWAR/Map-Tube-Delhi-0.99.tar.gz, MANWAR, 2025; MetaCPAN )
Map-Tube-Delhi/lib/Map/Tube/Delhi.pm ( view source; MetaCPAN )
 1.114 ':ALL';

use Moo;
use namespace::autoclean;

has json => (is => 'ro', default => sub { return dist_file('Map-Tube-Delhi', 'delhi-map.json') });

with 'Map::Tube';

=head1 DESCRIPTION

It curren
SlapbirdAPM-Agent-Mojo ( R/RA/RAWLEYFOW/SlapbirdAPM-Agent-Mojo-0.012.tar.gz, RAWLEYFOW, 2025; MetaCPAN )
SlapbirdAPM-Agent-Mojo/lib/Mojolicious/Plugin/SlapbirdAPM.pm ( view source; MetaCPAN )
e {
    my ( $json, $key, $app, $quiet ) = @_;
    try {
        my $result = $UA->post(
            $SLAPBIRD_APM_URI,
            { 'x-slapbird-apm' => $key },
            json => $json
        )->r
warn(
'Unable to communicate with Slapbird, this request has not been tracked: '
              . $json->{request_id}
              . ' got error '
              . shift );

    }
}

{

    package Moj
;

        Carp::croak('API key invalid!') if ( !$result->is_success );

        $name = $result->json()->{name};

        # _enable_mojo_ua_tracking($name) if $topology;
    }
    catch {
        cho
DBIx-Squirrel ( C/CP/CPANIC/DBIx-Squirrel-1.6.5.tar.gz, CPANIC, 2025; MetaCPAN )
DBIx-Squirrel/lib/DBIx/Squirrel/util.pm ( view source; MetaCPAN )
              ();
use Encode                        ();
use Exporter                      ();
use JSON::Syck                    ();
use DBIx::Squirrel::Crypt::Fernet ();

if ( -e '.env' ) {
    Dotenv
le contents will be uncompressed after they have been read
and possibly decrypted.

=item *

If ".json" forms part of the file's name or the C<unmarshal> option is
true, then the file contents will be
~ /\.bz2\b/ || $options->{uncompress};
    return unmarshal($contents)
        if $filename =~ /\.json\b/ || $options->{unmarshal};
    return utf8decode($contents)
        if $options->{utf8decode};
POE-Component-Metabase-Relay-Server ( B/BI/BINGOS/POE-Component-Metabase-Relay-Server-0.40.tar.gz, BINGOS, 2025; MetaCPAN )
POE-Component-Metabase-Relay-Server/lib/POE/Component/Metabase/Relay/Server/Queue.pm ( view source; MetaCPAN )
::Profile   ();
use Metabase::User::Secret    ();
use Module::Load::Conditional qw[can_load];
use JSON::MaybeXS;
use Params::Util qw[_HASH];
use Time::HiRes ();
use Data::UUID;

use constant DELAY => 

  if ( $result->{error} ) {
    warn "DB error (" . ( $self->_time - $result->{_ts} ) . "s): " . JSON->new->pretty(1)->encode( $result ) . "\n" if $self->debug;
  }
  $kernel->yield( '_process_queue'
act {
  my $self = shift;
  return JSON->new->encode( shift->as_struct );
}

sub _decode_fact {
  my $self = shift;
  return CPAN::Testers::Report->from_struct( JSON->new->decode( shift ) );
}

no Moo

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