Group
Extension

Matches 35359

Dist-Zilla ( R/RJ/RJBS/Dist-Zilla-6.036.tar.gz, RJBS, 2025; MetaCPAN )
Dist-Zilla/lib/Dist/Zilla/Plugin/MetaNoIndex.pm ( view source; MetaCPAN )
 are not part of the distribution.
#pod It does this by adding a C<no_index> block to your F<META.json> (or
#pod F<META.yml>) file in your distribution.
#pod
#pod =for Pod::Coverage mvp_aliases mvp_mu
, and are not part of the distribution.
It does this by adding a C<no_index> block to your F<META.json> (or
F<META.yml>) file in your distribution.

=head1 PERL VERSION

This module should work on any
Net-API-REST ( J/JD/JDEGUEST/Net-API-REST-v1.2.4.tar.gz, JDEGUEST, 2025; MetaCPAN )
Net-API-REST/lib/Net/API/REST/JWT.pm ( view source; MetaCPAN )

    # use JSON::MaybeXS qw(decode_json encode_json);
    # JSON::XS does not play well with ModPerl, so luckily we can use the Pure Perl version
    use JSON::PP qw( decode_json encode_json );
    us
d in json, decoding first.\n" ) if( $args{debug} );
        my $hash = decode_json( $args{token} );
        if( $hash->{payload} && $hash->{protected} ) 
        {
            # Flattened JWS JSON Ser
        elsif( $hash->{ciphertext} && $hash->{protected} ) 
        {
            # Flattened JWE JSON Serialization
            ( $header, $payload ) = _decode_jwe( $hash->{protected}, $hash->{encryp
Net-API-REST ( J/JD/JDEGUEST/Net-API-REST-v1.2.4.tar.gz, JDEGUEST, 2025; MetaCPAN )
Net-API-REST/lib/Net/API/REST/Request.pm ( view source; MetaCPAN )
NAL_SERVER_ERROR );
        $r->rflush;
        # $r->send_http_header;
        $r->print( $self->json->encode({ 'error' => 'An unexpected server error occured', 'code' => 500 }) );
        $self->err
NAL_SERVER_ERROR );
        $r->rflush;
        # $r->send_http_header;
        $r->print( $self->json->encode({ 'error' => 'An unexpected server error occured', 'code' => 500 }) );
        $self->err
ch
    local $@;
    my $json = eval
    {
        $self->json->encode( $ref );
    };
    if( $@ )
    {
        $self->error( "An error occurred while encoding data into JSON: $@" );
        return(
Dist-Zilla ( R/RJ/RJBS/Dist-Zilla-6.036.tar.gz, RJBS, 2025; MetaCPAN )
Dist-Zilla/lib/Dist/Zilla/Plugin/MetaJSON.pm ( view source; MetaCPAN )
package Dist::Zilla::Plugin::MetaJSON 6.036;
# ABSTRACT: produce a META.json

use Moose;
with 'Dist::Zilla::Role::FileGatherer';
use Moose::Util::TypeConstraints;

use Dist::Zilla::Pragmas;

use names
pace::autoclean;

#pod =head1 DESCRIPTION
#pod
#pod This plugin will add a F<META.json> file to the distribution.
#pod
#pod This file is meant to replace the old-style F<META.yml>.  For more informati
erated
#pod file.  It defaults, of course, to F<META.json>.
#pod
#pod =cut

has filename => (
  is  => 'ro',
  isa => 'Str',
  default => 'META.json',
);

#pod =attr version
#pod
#pod This parameter l
Dist-Zilla ( R/RJ/RJBS/Dist-Zilla-6.036.tar.gz, RJBS, 2025; MetaCPAN )
Dist-Zilla/lib/Test/DZil.pm ( view source; MetaCPAN )
_HASH0);
use JSON::MaybeXS;
use Scalar::Util qw(blessed);
use Test::Deep ();
use YAML::Tiny;

use Sub::Exporter -setup => {
  exports => [
    is_filelist =>
    is_yaml     =>
    is_json     =>
    
0], $want, $comment);
}

#pod =func is_json
#pod
#pod   is_json( $json_string, $want_struct, $comment );
#pod
#pod This test assertion deserializes the given JSON string and does a
#pod C<L<cmp_deeply
_deeply>>.
#pod
#pod =cut

sub is_json {
  my ($json, $want, $comment) = @_;

  my $have = JSON::MaybeXS->new(ascii => 1)->decode($json)
    or die "Cannot decode JSON";

  local $Test::Builder::Level
CGI-Lingua ( N/NH/NHORNE/CGI-Lingua-0.79.tar.gz, NHORNE, 2025; MetaCPAN )
CGI-Lingua/scripts/generate_index.pl ( view source; MetaCPAN )
utodie qw(:all);

use JSON::MaybeXS;
use File::Glob ':glob';
use File::Slurp;
use File::stat;
use POSIX qw(strftime);
use Readonly;

Readonly my $cover_db => 'cover_db/cover.json';
Readonly my $output
its in the coverage trend graph

# Read and decode coverage data
my $json_text = read_file($cover_db);
my $data = decode_json($json_text);

my $coverage_pct = 0;
my $badge_color = 'red';

if(my $total
} bsd_glob("coverage_history/*.json");
my $prev_data;

if (@history >= 1) {
	my $prev_file = $history[-1];	# Most recent before current
	eval {
		$prev_data = decode_json(read_file($prev_file));
	};
}
Dist-Build ( L/LE/LEONT/Dist-Build-0.021.tar.gz, LEONT, 2025; MetaCPAN )
Dist-Build/lib/Dist/Build/XS/Export.pm ( view source; MetaCPAN )
e::Spec::Functions qw/abs2rel catfile/;
use Parse::CPAN::Meta;

my $json_backend = Parse::CPAN::Meta->json_backend;
my $json = $json_backend->new->canonical->pretty->utf8;

my @allowed_flags = qw/incl
ib auto share module/, $module_dir, 'compile.json');

		my $inner = $planner->new_scope;
		$inner->load_extension('Dist::Build::Core');
		$inner->dump_json($filename, \%flags);

		return $planner->cre
PDF-Collage ( P/PO/POLETTIX/PDF-Collage-0.003.tar.gz, POLETTIX, 2025; MetaCPAN )
PDF-Collage/lib/PDF/Collage.pm ( view source; MetaCPAN )


use Carp;
use English                           qw< -no_match_vars >;
use JSON::PP                          qw< decode_json >;
use Scalar::Util                      qw< blessed >;
use Data::Resolver
  my $ar = ref($auto);
      if ($ar eq '' && $auto =~ m{\A [\[\{]}mxs) {
         $auto = decode_json($auto);
         $ar   = ref($auto);
      }
      return collage_from_definition($auto)
        
ak 'no useful input';
} ## end sub collage

sub collage_from_definition ($def) {
   $def = decode_json($def) unless ref $def;
   $def = {commands => $def} if ref($def) eq 'ARRAY';
   return PDF::Colla
Dist-Build ( L/LE/LEONT/Dist-Build-0.021.tar.gz, LEONT, 2025; MetaCPAN )
Dist-Build/lib/Dist/Build/XS/Import.pm ( view source; MetaCPAN )

use File::ShareDir::Tiny 'module_dir';
use Parse::CPAN::Meta;

my $json_backend = Parse::CPAN::Meta->json_backend;
my $json = $json_backend->new->canonical->pretty->utf8;

sub add_methods {
	my ($sel
dules) {
				my $module_dir = module_dir($module);
				my $config = catfile($module_dir, 'compile.json');
				my $include = catdir($module_dir, 'include');
				croak "No such import $module" if not -d
 die "Could not open $config: $!";
					my $content = do { local $/; <$fh> };
					my $payload = $json->decode($content);

					for my $key (qw/include_dirs library_dirs libraries extra_compiler_flags
PDF-Collage ( P/PO/POLETTIX/PDF-Collage-0.003.tar.gz, POLETTIX, 2025; MetaCPAN )
PDF-Collage/lib/PDF/Collage.pod ( view source; MetaCPAN )
t it should support:

   definitions/bar.json
   definitions/foo.json
   definitions/galook.json
   existing-file.pdf
   logo.png

Every key ending with C<.json> and starting with C<definitions/>,
opt
ition);
   my $pc = collage(definition => \@array_definition);
   my $pc = collage(definition => $json_hash_or_array);

This is a I<Do What I Mean> catchall function to generate an instance of
either 
tion>.

If the definition is a string starting with either C<{> or C<[>, it is
considered a valid JSON string and decoded as such, then processed as
follows.

If the definition is an array reference, 
Dist-Zilla ( R/RJ/RJBS/Dist-Zilla-6.036.tar.gz, RJBS, 2025; MetaCPAN )
Dist-Zilla/lib/Dist/Zilla.pm ( view source; MetaCPAN )
href containing the metadata about this distribution that will be
#pod stored in META.yml or META.json.  You should not alter the metadata in this
#pod hash; use a MetaProvider plugin instead.
#pod
#p
::Plugin::AutoPrereqs>,
#pod L<MetaYAML|Dist::Zilla::Plugin::MetaYAML>,
#pod L<MetaJSON|Dist::Zilla::Plugin::MetaJSON>,
#pod ...
#pod
#pod =back
#pod
#pod =item *
#pod
#pod On the CPAN:
#pod
#pod =ove
a hashref containing the metadata about this distribution that will be
stored in META.yml or META.json.  You should not alter the metadata in this
hash; use a MetaProvider plugin instead.

=head2 prer
PDF-Collage ( P/PO/POLETTIX/PDF-Collage-0.003.tar.gz, POLETTIX, 2025; MetaCPAN )
PDF-Collage/lib/PDF/Collage/TemplatesCollection.pod ( view source; MetaCPAN )
to assemble the target PDF.

=back

The definitions are supposed to be JSON file matching keys
C<\A(?:\./)?definitions/(.*)\.json\z>. The part in the capture group is
one of the available L</selectors
PDF-Collage ( P/PO/POLETTIX/PDF-Collage-0.003.tar.gz, POLETTIX, 2025; MetaCPAN )
PDF-Collage/lib/PDF/Collage/TemplatesCollection.pm ( view source; MetaCPAN )
TemplatesCollection;
use v5.24;
use warnings;
{ our $VERSION = '0.003' }

use Carp;
use JSON::PP qw< decode_json >;
use Scalar::Util qw< blessed >;
use PDF::Collage::Template ();

use Moo;
use experim
s => 'lazy');

sub _build__selectors ($self) {
   my @selectors =
      map  { s{\.json}{}rmxs }
      grep { m{\.json \z}mxs }
      $self->resolver->get_sub_resolver('definitions')->list_asset_keys;
er('definitions')
#      ->get_asset("$selector.json")->parsed_as_json;
   my $def = $resolver->get_asset("./definitions/$selector.json")->parsed_as_json;

   $def = { commands => $def } unless ref($d
App-cpm ( S/SK/SKAJI/App-cpm-0.998001.tar.gz, SKAJI, 2025; MetaCPAN )
App-cpm/lib/App/cpm/Resolver/MetaCPAN.pm ( view source; MetaCPAN )
esolver::MetaCPAN;
use strict;
use warnings;

use App::cpm::DistNotation;
use App::cpm::HTTP;
use JSON::PP ();

sub new {
    my ($class, %option) = @_;
    my $uri = $option{uri} || "https://fastapi.
f $res->{status} == 599;
        return { error => $error };
    }

    my $hash = eval { JSON::PP::decode_json($res->{content}) } or return;
    my $dist = App::cpm::DistNotation->new_from_uri($hash-
WWW-Codeguard ( D/DA/DAVIDO/WWW-Codeguard-0.11.tar.gz, DAVIDO, 2025; MetaCPAN )
WWW-Codeguard/lib/WWW/Codeguard/User.pm ( view source; MetaCPAN )
t;
use warnings FATAL => 'all', NONFATAL => 'uninitialized';

use parent qw(WWW::Codeguard);

use JSON qw();
use Net::OAuth;
use LWP::UserAgent;
use HTTP::Request;

=head1 NAME

WWW::Codeguard::User -
$params, 'HASH') ? ( website_id => $params->{website_id} ) : (),
	};

	$real_params->{disabled} = JSON::false;
	return $self->_do_method('edit_website', $real_params);
}

=head2 disable_website

This 
The parameters passed in were: '."\n".$self->_stringify_hash($params), 1);
	$params->{disabled} = JSON::true;
	return $self->_do_method('edit_website', $params);
}

=head2 create_database

This allows
SPVM-Mojolicious ( K/KI/KIMOTO/SPVM-Mojolicious-0.032.tar.gz, KIMOTO, 2025; MetaCPAN )
SPVM-Mojolicious/lib/SPVM/Mojo/Transaction/HTTP.pm ( view source; MetaCPAN )
GET");
  $tx->req->url->parse("http://example.com");
  $tx->req->headers->set_accept("application/json");
  say $tx->res->code;
  say $tx->res->headers->content_type;
  say $tx->res->body;
  say $tx->
Business-CAMT ( M/MA/MARKOV/Business-CAMT-0.14.tar.gz, MARKOV, 2025; MetaCPAN )
Business-CAMT/lib/Business/CAMT/Message.pod ( view source; MetaCPAN )
.);

  $msg->write('file.xml');
  print $msg->toPerl;

  open my $fh, '>:raw', 'msg.json' and $fh->print($msg->toJSON);

=head1 DESCRIPTION

This module is the base class for objects which are able to

=item $obj-E<gt>B<version>()

Z<>

=back

=head2 Other

=over 4

=item $obj-E<gt>B<toJSON>(%options)

Returns JSON raw text (bytes, not characters) for the data.  You may
save this to a file (explici
ettings  {pretty => 1, canonical => 1}

=over 2

=item settings => HASH

Pass the settings to the JSON generator object, see its manual page.
Provided settings will overrule the defaults.

=encoding u
Business-CAMT ( M/MA/MARKOV/Business-CAMT-0.14.tar.gz, MARKOV, 2025; MetaCPAN )
Business-CAMT/lib/Business/CAMT/Message.pm ( view source; MetaCPAN )
}


use strict;
use warnings;

use Log::Report 'business-camt';
use Scalar::Util  qw/weaken/;
use JSON          ();


sub new
{	my ($class, %args) = @_;
	my $data = delete $args{data} or return undef;
(1)->Quotekeys(0)->Indent(1);
	my $text = $d->Dump;

	$self->{_attrs} = $attrs;
	$text;
}


sub toJSON(%)
{	my ($self, %args) = @_;
	my %data  = %$self;        # Shallow copy to remove blessing
	delet
$settings);

	# JSON parameters call methods, copied from to_json behavior
	my $json     = JSON->new;
	while(my ($method, $value) = each %settings)
	{	$json->$method($value);
	}

	$json->encode(\%data
mojo-util-collection ( C/CR/CRLCU/mojo-util-collection-v0.0.17.tar.gz, CRLCU, 2025; MetaCPAN )
mojo-util-collection/lib/Mojo/Util/Collection.pm ( view source; MetaCPAN )
toCsv($self->objects, @_);
}

=head2 toJson

    Convert collection to JSON string

=cut

sub toJson {
    my $self = shift;

    return $self->formatter->toJson($self->objects, @_);
}

=head2 touch

mojo-util-collection ( C/CR/CRLCU/mojo-util-collection-v0.0.17.tar.gz, CRLCU, 2025; MetaCPAN )
mojo-util-collection/lib/Mojo/Util/Collection/Formatter.pm ( view source; MetaCPAN )
o::Util::Collection::Formatter;
use Mojo::Base -base;

our $VERSION = '0.0.17';

use Mojo::JSON qw(encode_json);

=head2 asOptions

Return an array ref containing [{ value => $value, label => $label }
$header) if ($header);

    return join("\n", @array);
}

=head2 toJson

Convert collection to JSON string

=cut

sub toJson {
    my $self = shift;

    return encode_json($self->toArray(@_));
}

1;

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