Group
Extension

Matches 35358

Onyphe ( G/GO/GOMOR/Onyphe-v4.19.0.tar.gz, GOMOR, 2025; MetaCPAN )
Onyphe/lib/Onyphe/Api.pm ( view source; MetaCPAN )
f8;
use File::Temp qw(tempfile);
use File::Slurp qw(read_file);
use Mojo::URL;
use JSON::XS qw(encode_json decode_json);
use Mojo::UserAgent;
use Mojo::Util qw(b64_encode url_escape);

#
# Common func
 '.$apikey,
      'X-Api-Key' => $apikey,  # Ready for APIv3
      'Content-Type' => 'application/json',
      'Accept' => '*/*',
   };
   if (defined($ct)) {
      $headers->{'Content-Type'} = $ct;
 

}

sub get_total ($self, $json) {
   my $total = $json->{total};
   return defined($total) && $total ? $total : 0;
}

sub get_maxpage ($self, $json) {
   my $maxpage = $json->{max_page};
   return de
Test-Smoke ( C/CO/CONTRA/Test-Smoke-1.84.tar.gz, CONTRA, 2025; MetaCPAN )
Test-Smoke/bin/tsarchivelog.pl ( view source; MetaCPAN )
e Test::Smoke::App::Options;
use Test::Smoke::App::SmokePerl;
use File::Copy;
use File::Spec;
use JSON;
use Path::Tiny ();
use POSIX ();


my $app = Test::Smoke::App::SmokePerl->new(
    Test::Smoke::
 File::Spec->catfile($app->option('ddir'), $app->option('jsnfile'));
die "Could not locate mktest.json" unless -f $jsnfile;
my $log_file = compose_log_file_name($adir, $jsnfile);

my $localtime = POSI
   my ($adir, $jsnfile) = @_;
    my $utf8_encoded_json_text = Path::Tiny::path($jsnfile)->slurp_utf8;
    my $config = decode_json($utf8_encoded_json_text);
    my $SHA = $config->{sysinfo}->{git_id}
WebService-Slack-WebApi ( M/MI/MIHYAERU/WebService-Slack-WebApi-0.19.tar.gz, MIHYAERU, 2025; MetaCPAN )
WebService-Slack-WebApi/lib/WebService/Slack/WebApi/Base.pm ( view source; MetaCPAN )
th, $args);
}

sub request_json {
    my ($self, $path, $args) = @_;
    my $request_path = sprintf '/%s.%s', $self->base_name, $path;
    return $self->client->request_json($request_path, $args);
}

Onyphe ( G/GO/GOMOR/Onyphe-v4.19.0.tar.gz, GOMOR, 2025; MetaCPAN )
Onyphe/lib/OPP.pm ( view source; MetaCPAN )
BuildAccessorsScalar(\@AS);

use Carp;
use Data::Dumper;
use Text::ParseWords;
use JSON::XS qw(encode_json decode_json);
use Tie::IxHash;

#
# Check given field is of nested kind:
#
# $self->is_nested
)}) {
         print "$_\n" for @{$self->to_json($doc)};
      }
      $self->output->flush;  # Flush output when processed
   }

   return 1;
}

sub to_json {
   my $self = shift;
   my ($doc) = @_;
 $doc ];

   my @json = ();
   for (@$doc) {
      my $docs = $self->order($_) or next;
      for my $doc (@$docs) {
         my $json;
         eval {
            $json = encode_json($doc);
         
WebService-Slack-WebApi ( M/MI/MIHYAERU/WebService-Slack-WebApi-0.19.tar.gz, MIHYAERU, 2025; MetaCPAN )
WebService-Slack-WebApi/lib/WebService/Slack/WebApi/Users/Profile.pm ( view source; MetaCPAN )
se warnings;
use utf8;
use feature qw/state/;

use parent 'WebService::Slack::WebApi::Base';

use JSON;

use WebService::Slack::WebApi::Generator (
    get => {
        include_labels => { isa => 'Boo
AllowExtra');
    my ($self, $args, %extra) = $rule->validate(@_);

    $args->{profile} = encode_json $args->{profile} if exists $args->{profile};
    return $self->request('set', { %$args, %extra })
Tie-Hash-DBD ( H/HM/HMBRAND/Tie-Hash-DBD-0.25.tgz, HMBRAND, 2025; MetaCPAN )
Tie-Hash-DBD/lib/Tie/Hash/DBD.pm ( view source; MetaCPAN )
str eq "JSON") {
		require JSON;
		my $j = JSON->new->allow_nonref;
		$h->{_en} = sub { $j->utf8->encode ($_[0]) };
		$h->{_de} = sub {       $j->decode ($_[0]) };
		}
	    elsif ($str eq "JSON::Maybe
require JSON::MaybeXS;
		my $j = JSON::MaybeXS->new->allow_nonref;
		$h->{_en} = sub { $j->utf8->encode ($_[0]) };
		$h->{_de} = sub {       $j->decode ($_[0]) };
		}
	    elsif ($str eq "JSON::SIMD")

		require JSON::SIMD;
		my $j = JSON::SIMD->new->allow_nonref;
		$h->{_en} = sub { $j->utf8->encode ($_[0]) };
		$h->{_de} = sub {       $j->decode ($_[0]) };
		}
	    elsif ($str eq "JSON::Syck") {
Onyphe ( G/GO/GOMOR/Onyphe-v4.19.0.tar.gz, GOMOR, 2025; MetaCPAN )
Onyphe/lib/OPP/Proc/Discovery.pm ( view source; MetaCPAN )
 for (@$results) {
         next if m{.\@category.\s*:\s*.none.};
         my $docs = $self->from_json($_);
         $docs = $self->flatten($docs);
         $self->output->add($docs);
      }
   };

 
Data-Dump-Color ( P/PE/PERLANCAR/Data-Dump-Color-0.251.tar.gz, PERLANCAR, 2025; MetaCPAN )
Data-Dump-Color/lib/Data/Dump/Color.pm ( view source; MetaCPAN )
ry is at L<https://github.com/perlancar/perl-Data-Dump-Color>.

=head1 SEE ALSO

L<Data::Dump>, L<JSON::Color>, L<YAML::Tiny::Color>

=head1 AUTHOR

perlancar <perlancar@cpan.org>

=head1 CONTRIBUTORS
Data-Unixish ( P/PE/PERLANCAR/Data-Unixish-1.574.tar.gz, PERLANCAR, 2025; MetaCPAN )
Data-Unixish/lib/Test/Data/Unixish.pm ( view source; MetaCPAN )
 qw(aiduxa);
use Exporter qw(import);
use File::Which qw(which);
use IPC::Cmd qw(run_forked);
use JSON::MaybeXS;
use Module::Load;
use String::ShellQuote;
use Test::More 0.96;

our @EXPORT = qw(test_d
2025-02-24'; # DATE
our $DIST = 'Data-Unixish'; # DIST
our $VERSION = '1.574'; # VERSION


my $json = JSON::MaybeXS->new->allow_nonref;

sub test_dux_func {
    no strict 'refs';

    my %args = @_;
 
                 ref($v) ?
                                    ("--$p-json",
                                     shell_quote($json->encode($v))) :
                                    ("--$p", shell_q
Data-NestedKey ( B/BI/BIGFOOT/Data-NestedKey-0.06.tar.gz, BIGFOOT, 2025; MetaCPAN )
Data-NestedKey/lib/Data/NestedKey.pm ( view source; MetaCPAN )
 with flexible serialization options.

use strict;
use warnings;

use Carp;
use Data::Dumper;
use JSON;
use List::Util qw(pairs);
use Scalar::Util qw(reftype);
use Storable qw(nfreeze);
use YAML ();  
or serialization options
our $JSON_PRETTY = 1;       # Controls whether JSON output is pretty or compact
our $FORMAT      = 'JSON';  # Default serialization format

use overload '""' => \&as_string;

($self) = @_;

  return JSON->new->pretty->encode( $self->{data} ) if $FORMAT eq 'JSON' && $JSON_PRETTY;
  return JSON->new->encode( $self->{data} )         if $FORMAT eq 'JSON';
  return YAML::Dump( 
Data-Unixish ( P/PE/PERLANCAR/Data-Unixish-1.574.tar.gz, PERLANCAR, 2025; MetaCPAN )
Data-Unixish/lib/Data/Unixish/chain.pm ( view source; MetaCPAN )
r=>"yellow"}]]}], 1000, 2000);

In command-line:

 % echo -e "1000\n2000" | dux chain --functions-json '["date", ["ANSI::color",{"color":"yellow"}]]'
 2
 3
 4

=head1 FUNCTIONS


=head2 chain

Usage:
Weather-Meteo ( N/NH/NHORNE/Weather-Meteo-0.12.tar.gz, NHORNE, 2025; MetaCPAN )
Weather-Meteo/lib/Weather/Meteo.pm ( view source; MetaCPAN )
package Weather::Meteo;

use strict;
use warnings;

use Carp;
use CHI;
use JSON::MaybeXS;
use LWP::UserAgent;
use Scalar::Util;
use Time::HiRes;
use URI;

use constant FIRST_YEAR => 1940;

=head1 NAME
d to decode correctly

	my $rc;
	eval { $rc = JSON::MaybeXS->new()->utf8()->decode($res->decoded_content()) };
	if($@) {
		Carp::carp("Failed to parse JSON response: $@");
		return;
	}

	if($rc) {
		i
AI-Ollama-Client ( C/CO/CORION/AI-Ollama-Client-0.05.tar.gz, CORION, 2025; MetaCPAN )
AI-Ollama-Client/scripts/code-completion.pl ( view source; MetaCPAN )
package main;
use 5.020;
use Mojo::JSON 'decode_json';
use experimental 'signatures';
use AI::Ollama::Client;
use Future::Utils 'repeat';

#use Getopt::Long;
#GetOptions(
#    'prefix|p=s' => \my $pre
App-CPAN-Get ( S/SK/SKIM/App-CPAN-Get-0.14.tar.gz, SKIM, 2025; MetaCPAN )
App-CPAN-Get/Get/MetaCPAN.pm ( view source; MetaCPAN )
pp::CPAN::Get::MetaCPAN;

use strict;
use warnings;

use Class::Utils qw(set_params);
use Cpanel::JSON::XS;
use English;
use Error::Pure qw(err);
use IO::Barf qw(barf);
use LWP::UserAgent;
use Readonl
_hr->{'package'}' doesn't exist.";
		} else {
			err $EVAL_ERROR;
		}
	}
	my $content_hr = decode_json($content);

	return $content_hr;
}

sub save {
	my ($self, $uri, $file, $opts_hr) = @_;

	my $for
     "latest",
 #     version           0.2
 # }

=head1 DEPENDENCIES

L<Class::Utils>,
L<Cpanel::JSON::XS>,
L<English>,
L<Error::Pure>,
L<IO::Barf>,
L<LWP::UserAgent>,
L<Readonly>,
L<Scalar::Util>,
L
YAML-Ordered-Conditional ( L/LN/LNATION/YAML-Ordered-Conditional-0.04.tar.gz, LNATION, 2025; MetaCPAN )
YAML-Ordered-Conditional/lib/YAML/Ordered/Conditional.pm ( view source; MetaCPAN )
k: 2
	  if:
	    key: country
	    m: Thailand
	    then:
	      rank: 1
	  key: countries
	|;

	$json = $c->compile($yaml, {
		countries => [
			{ country => "Thailand" },
			{ country => "Indonesia"
Daje-Workflow-GeneratePerl-Activity ( J/JA/JANESKIL/Tools/Daje-Workflow-GeneratePerl-Activity-0.12.tar.gz, JANESKIL, 2025; MetaCPAN )
Daje-Workflow-GeneratePerl-Activity/lib/Daje/Workflow/GeneratePerl/Base/Common.pm ( view source; MetaCPAN )

#
#   use Mojo::Base
#
#
#
# METHODS
# =======
#
#   has 'templates' ;
#   has 'json' ;
#


has 'templates' ;
has 'json' ;
has 'context';


1;



#################### pod generated by Pod::Autopod - 
::Workflow::GeneratePerl::Base::Common - Base class




=head1 DESCRIPTION


Simple base class




=head1 REQUIRES


  use Mojo::Base





=head1 METHODS


  has 'templates' ;
  has 'json' ;



=cut

AI-Ollama-Client ( C/CO/CORION/AI-Ollama-Client-0.05.tar.gz, CORION, 2025; MetaCPAN )
AI-Ollama-Client/lib/AI/Ollama/Client/Impl.pm ( view source; MetaCPAN )
Role
use YAML::PP;
use Mojo::UserAgent;
use Mojo::URL;
use URI::Template;
use Mojo::JSON 'encode_json', 'decode_json';
use OpenAPI::Modern;

use File::ShareDir 'module_file';

use Future::Mojo;
use Fu
fault => sub {
        if( my $fn = $_[0]->schema_file ) {
            YAML::PP->new( boolean => 'JSON::PP' )->load_file($fn);
        }
    },
);

has 'validate_requests' => (
    is => 'rw',
    def
cepted value is json.

Enable JSON mode by setting the format parameter to json. This will structure the response as valid JSON.

Note: it's important to instruct the model to use JSON in the prompt. 
Daje-Controller-Workflow ( J/JA/JANESKIL/Tools/Daje-Controller-Workflow-0.02.tar.gz, JANESKIL, 2025; MetaCPAN )
Daje-Controller-Workflow/lib/Daje/Controller/Workflow.pm ( view source; MetaCPAN )
self.
#
# AUTHOR
# ======
#
# janeskil1525 E<lt>janeskil1525@gmail.comE<gt>
#
#

use Mojo::JSON qw{decode_json};

our $VERSION = "0.02";


sub execute($self) {

    my $test = 1;
    # $self->render_l
_pkey(
        $self->req->headers->header('X-Token-Check')
    );

    my $data->{data} = decode_json ($self->req->body);
    $data->{users_fkey} = $users_pkey;
    $data->{companies_fkey} = $compani
kflow->error->has_error() == 0) {
            $self->render(json => {'result' => 'success'});
        } else {
            $self->render(json =>
                {'result' => 'failed', data => $self->w
AI-Ollama-Client ( C/CO/CORION/AI-Ollama-Client-0.05.tar.gz, CORION, 2025; MetaCPAN )
AI-Ollama-Client/lib/AI/Ollama/GenerateCompletionRequest.pm ( view source; MetaCPAN )
cepted value is json.

Enable JSON mode by setting the format parameter to json. This will structure the response as valid JSON.

Note: it's important to instruct the model to use JSON in the prompt. 
amounts whitespace.

=cut

has 'format' => (
    is       => 'ro',
    isa      => Enum[
        "json",
    ],
);

=head2 C<< images >>

(optional) a list of Base64-encoded images to include in the m
Daje-Workflow-GeneratePerl-Activity ( J/JA/JANESKIL/Tools/Daje-Workflow-GeneratePerl-Activity-0.12.tar.gz, JANESKIL, 2025; MetaCPAN )
Daje-Workflow-GeneratePerl-Activity/lib/Daje/Workflow/GeneratePerl/Generate/Class.pm ( view source; MetaCPAN )
e($self) {
    my $tpl = $self->templates->get_data_section('class');
    my $table_name = $self->json->{table_name};
    my $name_space = $self->context->{context}->{perl}->{name_space};
    my $base

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