Group
Extension

Matches 35358

Log-ger-Manual ( P/PE/PERLANCAR/Log-ger-Manual-0.040.000.tar.gz, PERLANCAR, 2022; MetaCPAN )
Log-ger-Manual/lib/Log/ger/Manual/Tutorial/790_WritingALayoutPlugin.pod ( view source; MetaCPAN )
 examples of more involved layout plugins, see: L<Log::ger::Layout::Pattern>,
L<Log::ger::Layout::JSON>.

=head1 SEE ALSO

L<Log::ger::Manual::Internals>

L<Log::ger::Manual::Tutorial::490_WritingAnOu
Log-ger-Manual ( P/PE/PERLANCAR/Log-ger-Manual-0.040.000.tar.gz, PERLANCAR, 2022; MetaCPAN )
Log-ger-Manual/lib/Log/ger/Manual/ForLogAny.pod ( view source; MetaCPAN )
ws you to log in a custom format, e.g. using block a la
L<Log::Contextual>, raw data structure as JSON, etc.

=head1 MIGRATING

To ease migrating, L<Log::ger::Like::LogAny> is provided. You can change
Log-ger-Manual ( P/PE/PERLANCAR/Log-ger-Manual-0.040.000.tar.gz, PERLANCAR, 2022; MetaCPAN )
Log-ger-Manual/lib/Log/ger/Manual/ForLog4perl.pod ( view source; MetaCPAN )
 la
L<Log::Contextual>, log raw data structure as JSON, etc. Note: you can also
layout message as JSON in Log4perl using L<Log::Log4perl::Layout::JSON> but your
message is still a string.

=head1 MIGR
Log-ger-Manual ( P/PE/PERLANCAR/Log-ger-Manual-0.040.000.tar.gz, PERLANCAR, 2022; MetaCPAN )
Log-ger-Manual/lib/Log/ger/Manual/FAQ.pod ( view source; MetaCPAN )
gified. To output this to destination, combine this
with a layout plugin like L<Log::ger::Layout::JSON> or
L<Log::ger::Layout::LTSV>. Or perhaps write your own output module that accepts
raw data stru
Lang-HL ( R/RA/RAJ/Lang-HL-5.052.tar.gz, RAJ, 2022; MetaCPAN )
Lang-HL/lib/Lang/HL.pm ( view source; MetaCPAN )
    	(JSON,
    	 !mechanize = WWW::Mechanize.new());

    	function main() {
    		class.counter = 0;

    		var hash = class.returnNumber();
    		var json = encode_json(hash);
    		print(json, "\n
Carmel ( M/MI/MIYAGAWA/Carmel-v0.9.2-TRIAL.tar.gz, MIYAGAWA, 2022; MetaCPAN )
Carmel/lib/Carmel/Builder.pm ( view source; MetaCPAN )
d("latest-build")->children) {
        next unless $ent->is_dir && $ent->child("blib/meta/install.json")->exists;
        push @artifacts, $self->collect_artifact->($ent);
    }

    $lib->remove_tree
Dancer2-Plugin-DBIx-Class ( G/GE/GEEKRUTH/Dancer2-Plugin-DBIx-Class-1.1001.tar.gz, GEEKRUTH, 2022; MetaCPAN )
Dancer2-Plugin-DBIx-Class/lib/Dancer2/Plugin/DBIx/Class.pm ( view source; MetaCPAN )
ons prefetched.
   #
   my @books = author($id)->books->prefetch('edition')->all 
   
   # send a JSON-encoded list of hashrefs of authors with first names
   #    that start with 'John' and their wor
end framework
   #    (Some, like DevExtreme, do not cope well with the objects.)
   #
   send_as JSON => [ authors->like( 'first_name', 'John%')->prefetch('books')->hri->all ];

There are many really
App-CekBpom ( P/PE/PERLANCAR/App-CekBpom-0.022.tar.gz, PERLANCAR, 2022; MetaCPAN )
App-CekBpom/lib/App/CekBpom.pm ( view source; MetaCPAN )
n JSON format. The JSON formatting makes it easy to grep each row. The
file will be named
`cek-bpom-products-result.<encoded-timestamp>.<search-types-encoded>.<queries-encoded>(.<note-encoded>)?.json`
roducts-result.2020-10-22T01_02_03.000Z.merk-nama_produk.minuman-susu-fermentasi-yakult.some-note.json`.

_
            tags => ['category:logging'],
        },
    },
    examples => [
        {
    


  DUMP_RESULT: {
        last unless defined(my $dir = $args{result_dump_dir});
        require JSON::Encode::TableData;

        -d $dir or do {
            log_error "Result dump dir '$dir' does n
WebService-TaxJar ( C/CO/COLINK/WebService-TaxJar-0.0002.tar.gz, COLINK, 2022; MetaCPAN )
WebService-TaxJar/lib/WebService/TaxJar.pm ( view source; MetaCPAN )
002';
use HTTP::Thin;
use HTTP::Request::Common qw/GET DELETE PUT POST/;
use HTTP::CookieJar;
use JSON;
use URI;
use Ouch;
use Moo;

=head1 NAME

WebService::TaxJar - A simple client to L<TaxJar's RES
 JSON

When making a request like:

    $tj->post('customers', { customer_id => '27', exemption_type => 'non_exempt', name => 'Andy Dufresne', });

The data in POST request will be translated to JSON 
using <JSON::to_json>.

=item Response data is deserialized from JSON and returned from each call.

=back

=head1 EXCEPTIONS

All exceptions in C<WebService::TaxJar> are handled by C<Ouch>.  A 500 exc
WWW-Wappalyzer ( N/NA/NALOBIN/WWW-Wappalyzer-2.00.tar.gz, NALOBIN, 2022; MetaCPAN )
WWW-Wappalyzer/lib/WWW/Wappalyzer.pm ( view source; MetaCPAN )
package WWW::Wappalyzer;

use 5.006;
use strict;
use warnings;

use lib::abs;
use JSON qw();
use Regexp::Parser;

# List of multi per-page application categories names
my %MULTIPLE_APP_CATS = map { $_
vour of speed.

Categories: L<https://github.com/wappalyzer/wappalyzer/blob/master/src/categories.json>
Technologies: L<https://github.com/wappalyzer/wappalyzer/tree/master/src/technologies>
More info
lib::abs::path( './wappalyzer_src/categories.json' ) );
    $self->add_technologies_files( glob lib::abs::path( './wappalyzer_src/technologies' ) . '/*.json'  );

    if ( ref $params{categories} eq '
Cron-Sequencer ( N/NW/NWCLARK/Cron-Sequencer-0.05.tar.gz, NWCLARK, 2022; MetaCPAN )
Cron-Sequencer/lib/Cron/Sequencer/CLI.pm ( view source; MetaCPAN )
arse_argv);

my %known_json = map { $_, 1 } qw(seq split pretty canonical);

sub parse_argv {
    my ($pod2usage, @argv) = @_;

    my @groups;
    my $current = [];
    my $json;

    # Split the com
) {
            push @groups, $current;
            $current = [];
        } elsif ($item =~ /\A--json(?:=(.*)|)\z/s && !@groups) {
            # GetOpt::Long doesn't appear to have a way to specify t
he '=' form.
            # We'd like to support `--json` and `--json=pretty` but have
            # `--json pretty` mean the same as `./pretty --json`

            if (length $1) {
                for
Cron-Sequencer ( N/NW/NWCLARK/Cron-Sequencer-0.05.tar.gz, NWCLARK, 2022; MetaCPAN )
Cron-Sequencer/lib/Cron/Sequencer.pm ( view source; MetaCPAN )
er

=head1 SYNOPSIS

    my $crontab = Cron::Sequencer->new("/path/to/crontab");
    print encode_json([$crontab->sequence($start, $end)]);

=head1 DESCRIPTION

This class can take one or more crontab
Rubric ( R/RJ/RJBS/Rubric-0.157.tar.gz, RJBS, 2022; MetaCPAN )
Rubric/lib/Rubric/WebApp/Session.pm ( view source; MetaCPAN )
ebApp::Session 0.157;
# ABSTRACT: the Rubric session plugin

use CGI::Cookie;
use Crypt::CBC;
use JSON 2 ();
use MIME::Base64;
use Sub::Exporter -setup => {
  -as => '_import',
  exports => [
    qw(s
>query->cookie($COOKIE_NAME);

  my $cipherer = $self->session_cipherer;

  my $data = eval {
    JSON->new->utf8->decode(
      $cipherer->decrypt(decode_base64($cookie_value))
    );
  };

  my $ses
= @_;

  my $cookie_value = eval {
    my $json = JSON->new->utf8->encode($self->session->as_hash);

    encode_base64($self->session_cipherer->encrypt($json));
  };

  my $cookie = CGI::Cookie->new(
CPAN-FindDependencies ( D/DC/DCANTRELL/CPAN-FindDependencies-3.13.tar.gz, DCANTRELL, 2022; MetaCPAN )
CPAN-FindDependencies/lib/CPAN/FindDependencies.pm ( view source; MetaCPAN )
 a blob of data and if it looks like a zip or a tarball
                # tries to extract a META.json or META.yml and return its content
                # (or the empty string if not found), otherwis
.
                my $file_data = shift;
                my $meta_file_re = qr/^([^\/]+\/)?META\.(json|yml)/;
                my $rval = '';

                # We should be able to avoid writing to di
ar = Archive::Tar->new(shift());
                        # sort to ensure that we get JSON by preference, META.json
                        # often contains more info
                        if(my @me
Cron-Sequencer ( N/NW/NWCLARK/Cron-Sequencer-0.05.tar.gz, NWCLARK, 2022; MetaCPAN )
Cron-Sequencer/lib/Cron/Sequencer/Output.pm ( view source; MetaCPAN )
 = %opts{qw(count group hide-env json)};

    return bless \%state;
}

sub render {
    my ($self, @groups) = @_;

    return $self->{json}
        ? $self->render_json(@groups) : $self->render_text(@
output;

    return join "\n", @output;
}

sub render_json {
    my ($self, @groups) = @_;
    require JSON::MaybeXS;

    my %opts = $self->{json}->%*;

    # CLI parser forbids 'seq' and 'split' sim
eq};
    my $start = $seq ? "\x1E" : "";
    my $split = delete $opts{split} || $seq;

    my $json = JSON::MaybeXS->new(%opts);

    my $munged;
    if ($self->{'hide-env'}) {
        # We shouldn't 
Carmel ( M/MI/MIYAGAWA/Carmel-v0.9.2-TRIAL.tar.gz, MIYAGAWA, 2022; MetaCPAN )
Carmel/lib/Carmel/Artifact.pm ( view source; MetaCPAN )
package Carmel::Artifact;
use strict;
use CPAN::Meta;
use JSON ();
use Path::Tiny ();

sub new {
    my($class, $path) = @_;
    bless { path => Path::Tiny->new($path) }, $class;
}

sub path { $_[0]->
self = shift;

    my $file = $self->path->child("blib/meta/install.json");
    if ($file->exists) {
        return JSON::decode_json($file->slurp);
    }

    die "Can't read build artifact from ", $
f->libs;
}

sub meta {
    my $self = shift;
    CPAN::Meta->load_file($self->path->child("MYMETA.json"));
}

sub requirements {
    my $self = shift;
    $self->requirements_for([qw( configure build 
Carmel ( M/MI/MIYAGAWA/Carmel-v0.9.2-TRIAL.tar.gz, MIYAGAWA, 2022; MetaCPAN )
Carmel/lib/Carmel/App.pm ( view source; MetaCPAN )
);
use Try::Tiny;

# prefer Parse::CPAN::Meta in XS, PP order with JSON.pm
$ENV{PERL_JSON_BACKEND} = 1
  unless defined $ENV{PERL_JSON_BACKEND};

use Class::Tiny {
    verbose => sub { 0 },
};

sub pa
Task-Devel-Essentials ( M/MH/MHASCH/Task-Devel-Essentials-0.016.tar.gz, MHASCH, 2022; MetaCPAN )
Task-Devel-Essentials/lib/Task/Devel/Essentials.pm ( view source; MetaCPAN )
em L<Inline>

=item L<IO::Compress::Base>

=item L<IO::Zlib>

=item L<Iterator::Diamond>

=item L<JSON>

=item L<Kwalify>

=item L<List::MoreUtils>

=item L<List::MoreUtils::XS> (optional)

=item L<LW
Net-Async-WebService-lxd ( D/DR/DRRHO/Net-Async-WebService-lxd-0.03.tar.gz, DRRHO, 2022; MetaCPAN )
Net-Async-WebService-lxd/lib/Net/Async/WebService/lxd.pod ( view source; MetaCPAN )
=> 'test1',
            body => {
                action   => "start",
		force    => JSON::false,
		stateful => JSON::false,
		timeout  => 30,
	    } )->get;                                           
em *

a Perl HASH ref which reflects the JSON data sent from the LXD server. Note, that Booleans have to
be treated special, by using C<JSON::false> and C<JSON::true>. Otherwise, they follow B<exactly
y => {
                                   action   => "start",
				   force    => JSON::false,
				   stateful => JSON::false,
				   timeout  => 30,
 			         } );

That HASH ref also follows the 
Plack-Middleware-ValidateJSON ( M/MH/MHANDISI/Plack-Middleware-ValidateJSON-0.001.tar.gz, MHANDISI, 2022; MetaCPAN )
Plack-Middleware-ValidateJSON/lib/Plack/Middleware/ValidateJSON.pm ( view source; MetaCPAN )
Plack::Middleware::ValidateJSON;

use strict;
use warnings;

use parent qw( Plack::Middleware );

use JSON::MaybeXS;
use Plack::Request;

# ABSTRACT: Checks validity of JSON POST'd to a Plack app and 
esponse if the JSON is not valid

=head1 NAME

Plack::Middleware::ValidateJSON

=head1 DESCRIPTION

Check validity of JSON POST'ed to the app and generate a 422 HTTP response if the JSON is not valid
he event of invalid JSON.

=cut

sub call {
    my($self, $env) = @_;

    my $request = Plack::Request->new($env);

    # if content is present, make certain that it is valid JSON, otherwise there is

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