Group
Extension

Matches 35358

Pegex-Cmd ( I/IN/INGY/Pegex-Cmd-0.28.tar.gz, INGY, 2020; MetaCPAN )
Pegex-Cmd/lib/Pegex/Cmd.pod ( view source; MetaCPAN )
 line:

    > pegex help

    > pegex compile --to=yaml your-grammar.pgx
    > pegex compile --to=json your-grammar.pgx
    > pegex compile --to=perl your-grammar.pgx
    > pegex compile --to=perl6 yo
Loctools-Net ( A/AF/AFAN/Loctools-Net-1.0.tar.gz, AFAN, 2020; MetaCPAN )
Loctools-Net/lib/Loctools/Net/OAuth2/Session.pm ( view source; MetaCPAN )
package Loctools::Net::OAuth2::Session;

use strict;

use JSON qw(decode_json encode_json);
use Net::OAuth2::Profile::WebServer;

sub new {
    my ($class, %params) = @_;

    my $session_file = $para
lf) = @_;
    warn "Loading OAuth2 session from $self->{session_file}\n";
    my $session = _load_json($self->{session_file}) or die $!;
    $self->{token} = Net::OAuth2::AccessToken->session_thaw(
  
aving OAuth2 session to $self->{session_file}\n";
    _save_json($self->{session_file}, $self->{token}->session_freeze());
}

sub _load_json {
    my ($filename) = @_;
    open IN, $filename || die "C
Dist-Zilla-PluginBundle-BAREFOOT ( B/BA/BAREFOOT/Dist-Zilla-PluginBundle-BAREFOOT-0.06_02.tar.gz, BAREFOOT, 2020; MetaCPAN )
Dist-Zilla-PluginBundle-BAREFOOT/lib/Dist/Zilla/PluginBundle/BAREFOOT.pm ( view source; MetaCPAN )
ON

	my @dirty_files = qw< dist.ini Changes >;
	my @exclude_generated_files = qw< README.pod META.json >;

	class_has weaver_payload	=>	( ro, writer => '_store_weaver_data', isa => HashRef, lazy,
				
nherit_version => 1 } ],							# AFTER MetaNoIndex
			#MetaYAML					=>														# core
			MetaJSON					=>														# core

			# build system
			ExecDir						=>														# core
			ShareDir	
der top dir
 	exclude_filename = README.pod		; skip this generated file
 	exclude_filename = META.json		; skip this generated file
 
 	;[PruneCruft]						; default stuff to skip
 	;[ManifestSkip]					
Loctools-Net ( A/AF/AFAN/Loctools-Net-1.0.tar.gz, AFAN, 2020; MetaCPAN )
Loctools-Net/lib/Loctools/Net/HTTP/Client.pm ( view source; MetaCPAN )
:Client;

use strict;

use HTTP::Headers;
use HTTP::Request;
use LWP::UserAgent;
use JSON qw(decode_json encode_json);

my $DEFAULT_MAX_RETRIES = 5;

sub new {
    my ($class, %params) = @_;

    my $
'POST', @_);
}

sub post_json {
    my ($self, $url, $content, $headers) = @_;
    return $self->post($url, encode_json($content), _add_json_header($headers));
}

sub put_json {
    my ($self, $url, $
ncode_json($content), _add_json_header($headers));
}

sub _add_json_header {
    my $headers = shift;
    $headers = {} unless defined $headers;
    $headers->{'Content-type'} = 'application/json; cha
Pegex-Cmd ( I/IN/INGY/Pegex-Cmd-0.28.tar.gz, INGY, 2020; MetaCPAN )
Pegex-Cmd/lib/Pegex/Cmd.pm ( view source; MetaCPAN )
c =>
    'pegex compile --to=<output format> [grammar_file.pgx]';

# Output format. One of: yaml, json, perl, perl6, python.
has to => ();

# Regex format: raw, perl.
has regex => ();

# Use the boots
it / +/, $ENV{PEGEX_COMBINATE_RULES} ]
        : []
    },
);

my %formats = map {($_,1)} qw'yaml json perl';
my %regexes = map {($_,1)} qw'perl raw';
my %commands = map {($_,1)} qw'compile help versi
ub compile {
    my ($self, $args) = @_;

    my $to = $self->to or
        error "--to=perl|yaml|json required";

    my $regex = $self->regex ||
        $to eq 'perl' ? 'perl' : 'raw';

    die "'$t
Catalyst-Authentication-RedmineCookie ( B/BO/BOKUTIN/Catalyst-Authentication-RedmineCookie-0.02.tar.gz, BOKUTIN, 2020; MetaCPAN )
Catalyst-Authentication-RedmineCookie/etc/mycontainer.pl ( view source; MetaCPAN )
   => [qw(ssh redmine.server /root/rails4_cookie_to_json.rb)],
                        # cmd   => [qw(sudo jexec redmine /root/rails4_cookie_to_json.rb)],
                    },
                    # 
Mojo-AsyncAwait ( J/JB/JBERGER/Mojo-AsyncAwait-0.03.tar.gz, JBERGER, 2020; MetaCPAN )
Mojo-AsyncAwait/lib/Mojo/AsyncAwait/Backend/Coro.pm ( view source; MetaCPAN )
://mojolicious.org');
    my $cpan = await $c->ua->get_p('https://metacpan.org');

    $c->render(json => {
      mojo => $mojo->result->code,
      cpan => $cpan->result->code
    });
  };

  app->st
Mojo-AsyncAwait ( J/JB/JBERGER/Mojo-AsyncAwait-0.03.tar.gz, JBERGER, 2020; MetaCPAN )
Mojo-AsyncAwait/lib/Mojo/AsyncAwait.pm ( view source; MetaCPAN )
://mojolicious.org');
    my $cpan = await $c->ua->get_p('https://metacpan.org');

    $c->render(json => {
      mojo => $mojo->result->code,
      cpan => $cpan->result->code
    });
  };

  app->st
Catalyst-Authentication-RedmineCookie ( B/BO/BOKUTIN/Catalyst-Authentication-RedmineCookie-0.02.tar.gz, BOKUTIN, 2020; MetaCPAN )
Catalyst-Authentication-RedmineCookie/junk/show_user.pl ( view source; MetaCPAN )
n::Perl;
use base qw(App::Cmd::Simple);

use Catalyst::Authentication::RedmineCookie::Schema;
use JSON::MaybeXS;
use MyContainer;

sub opt_spec {
    (
        [ "login=s", "SELECT * FROM users WHERE 
);

    my $cols = sub {
        my ($obj) = @_;
        state $json = JSON::MaybeXS->new( canonical => 1, pretty => 1, );
        $json->encode( { $obj->get_columns } );
    };

    say "--> user";
 
Catalyst-Authentication-RedmineCookie ( B/BO/BOKUTIN/Catalyst-Authentication-RedmineCookie-0.02.tar.gz, BOKUTIN, 2020; MetaCPAN )
Catalyst-Authentication-RedmineCookie/lib/Catalyst/Authentication/RedmineCookie.pm ( view source; MetaCPAN )
       cmd   => [qw(ssh redmine.server rails4_cookie_to_json.rb)],
                        cmd   => [qw(sudo jexec redmine rails4_cookie_to_json.rb)],
                    },
                    # It d
Net-Hadoop-Oozie ( B/BU/BURAK/Net-Hadoop-Oozie-0.116.tar.gz, BURAK, 2020; MetaCPAN )
Net-Hadoop-Oozie/lib/Net/Hadoop/Oozie/Role/LWP.pm ( view source; MetaCPAN )
1, default => 0, env => 1 };
use JSON::XS;
use LWP::UserAgent;
use Moo::Role;
use Scalar::Util qw( blessed );

with 'Net::Hadoop::YARN::Roles::Common';

my $json = JSON::XS->new->pretty(1)->canonical(
;

        return { response => $content } if index( lc $type, 'json' ) == -1;

        my $res;

        eval {
            $res = $json->decode($content);
            1;
        } or do {
          
  my $eval_error = $@ || 'Zombie error';
            confess q{server response wasn't valid JSON: } . $eval_error;
        };

        return $res;
    }

    my $headers = $response->headers;
    my 
Net-Hadoop-Oozie ( B/BU/BURAK/Net-Hadoop-Oozie-0.116.tar.gz, BURAK, 2020; MetaCPAN )
Net-Hadoop-Oozie/lib/Net/Hadoop/Oozie/SLA/Summary.pm ( view source; MetaCPAN )
 is a good indication of when
            # the SLA event happened, but that's all we have in the JSON;
            # let's try using that
            if (!( $alert->{lastModifiedEpoch} >= $after
    
Catalyst-Authentication-RedmineCookie ( B/BO/BOKUTIN/Catalyst-Authentication-RedmineCookie-0.02.tar.gz, BOKUTIN, 2020; MetaCPAN )
Catalyst-Authentication-RedmineCookie/lib/Catalyst/Authentication/Credential/RedmineCookie.pm ( view source; MetaCPAN )
package Catalyst::Authentication::Credential::RedmineCookie;

use Moose;

use IPC::Open2;
use JSON::MaybeXS qw(:legacy);
use POSIX ":sys_wait_h";

has cmd => ( is => 'ro', isa => 'Str|ArrayRef', requi
h;
        my $line = <$out>;
        if ( $line =~ /^{/ ) {
            my $data = eval { decode_json($line) };
            if ($@) {
                $c->log->error("@{[ __PACKAGE__ ]} $@ line:$line"
Net-Hadoop-Oozie ( B/BU/BURAK/Net-Hadoop-Oozie-0.116.tar.gz, BURAK, 2020; MetaCPAN )
Net-Hadoop-Oozie/lib/Net/Hadoop/Oozie.pm ( view source; MetaCPAN )
    if ($config->{debug} || !$res->{id}) {
        local $Data::Dumper::Terse = 1;
        print "JSON response: ", Data::Dumper::Dumper $res;
    }
    
    $self->offset($saved_offset);
    $self->l
( $debug || !@{ $res->{actions} || [] } ) {
        local $Data::Dumper::Terse = 1;
        warn "JSON response: ", Data::Dumper::Dumper $res;
    }

    # return some of the response
    my $ret;
   
and_xml_conf;
    my $uri = URI->new( $self->oozie_uri );

    # Jobs is supposed to be a 2-level JSON hash
    my $flat_jobs = flatten($jobs);
    for my $k (keys %$flat_jobs) {
        my $v = $flat
Pegex-JSON ( I/IN/INGY/Pegex-JSON-0.31.tar.gz, INGY, 2020; MetaCPAN )
Pegex-JSON/lib/Pegex/JSON.pod ( view source; MetaCPAN )
NAME

Pegex::JSON - Pegex Loader for JSON

=for html
<a href="https://travis-ci.org/ingydotnet/pegex-json-pm"><img src="https://travis-ci.org/ingydotnet/pegex-json-pm.png" alt="pegex-json-pm"></a>
<a 
et/pegex-json-pm?branch=master"><img src="https://coveralls.io/repos/ingydotnet/pegex-json-pm/badge.png" alt="pegex-json-pm"></a>

=head1 SYNOPSIS

    my $data = Pegex::JSON->new->load($json);

=head
1 DESCRIPTION

Pegex::JSON is a JSON parser written in Pegex.

=head1 SEE ALSO

=over

=item * L<Pegex>

=item * L<JSON>

=back

=head1 AUTHOR

Ingy döt Net <ingy@cpan.org>

=head1 COPYRIGHT

Copyrig
Crypto-NanoRPC ( H/HA/HACKTOR/Crypto-NanoRPC-0.9.1.tar.gz, HACKTOR, 2020; MetaCPAN )
Crypto-NanoRPC/lib/Crypto/NanoRPC.pm ( view source; MetaCPAN )
pto::NanoRPC;

use 5.018001;
use strict;
use warnings;
use HTTP::Request;
use LWP::UserAgent;
use JSON;

require Exporter;
our @ISA = qw(Exporter);
our %EXPORT_TAGS = ( 'all' => [] );
our @EXPORT_OK =
'account', 'wallet', 'source', 'destination', 'link', 'json_block', 'work' ] ],
    block_hash => [ 'block' ],
    block_info => [ 'hash', [ 'json_block' ] ],
    blocks => [ 'hashes' ],
    blocks_in
n_history => [ [ 'hash' ] ],
    confirmation_info => [ 'root', [ 'contents', 'representatives', 'json_block' ] ],
    confirmation_quorum => [ [ 'peer_details' ] ],
    database_txn_tracker => [ 'min
portable-loader ( T/TO/TOBYINK/portable-loader-0.003.tar.gz, TOBYINK, 2020; MetaCPAN )
portable-loader/lib/portable/loader.pm ( view source; MetaCPAN )
hashref, it can be written in
other syntaxes. It could be written in JSON, if L<JSON::Eval> is used to
inflate coderefs in the JSON:

  {
    "version": 1.0,
    "toolkit": "Moo",
    "class:Tree": {
  },
    "class:Maple": {
      "extends": "Tree"
    }
  }

If this is saved at "Nature.portable.json", portable::loader should
be able to load it.

The default format that L<portable::loader> uses t
der->load($libname);

portable::loader will search for "$libname.portable.pl",
"$libname.portable.json", "$libname.portable.toml", or "$libname.portable"
(which will be assumed to be TOML). Other form
JIRA-Client-Automated ( F/FR/FRIMICC/JIRA-Client-Automated-1.9.tar.gz, FRIMICC, 2020; MetaCPAN )
JIRA-Client-Automated/lib/JIRA/Client/Automated.pm ( view source; MetaCPAN )
s.

=head1 JIRA ISSUE HASH FORMAT

When you work with an issue in JIRA's REST API, it gives you a JSON file that
follows this spec:

L<https://developer.atlassian.com/cloud/jira/platform/rest/#api-api
 and not make you deal directly
with JSON. When you create a new issue, you can pass in just the pieces you
want and L</"create_issue"> will transform them to JSON for you. The same for
closing and de
So in those cases you'll need to pass in an
"update_hash" which will be transformed to the proper JSON by the method.

An update_hash looks like this:

    { field1 => value, field2 => value2, ...}

F
Spreadsheet-Wright ( T/TO/TOBYINK/Spreadsheet-Wright-0.107.tar.gz, TOBYINK, 2020; MetaCPAN )
Spreadsheet-Wright/lib/Spreadsheet/Wright.pm ( view source; MetaCPAN )
on = {
		auto    => 'CSV',
		csv     => 'CSV',
		excel   => 'Excel',
		html    => 'HTML',
		json    => 'JSON',
		ods     => 'OpenDocument',
		odsxml  => 'OpenDocumentXML',
		text    => 'CSV',
		txt   
item * B<format> - format of spreadsheet - 'csv', 'xls',  'xlsx', 'html', 'xhtml', 'xml', 'ods', 'json', or 'auto' (default).

=item * B<sheet> - first sheet name (optional, not supported by some form
Dancer-Plugin-Thumbnail ( L/LO/LONERR/Dancer-Plugin-Thumbnail-0.16.tar.gz, LONERR, 2020; MetaCPAN )
Dancer-Plugin-Thumbnail/lib/Dancer/Plugin/Thumbnail.pm ( view source; MetaCPAN )
ncer and GD

=cut

use Dancer ':syntax';
use Dancer::MIME;
use Dancer::Plugin;
use GD::Image;
use JSON::MaybeXS;
use List::Util qw( min max );
use Object::Signature;
use POSIX 'strftime';


=head1 VER
al Server Error';
		};
		# store serialized meta information (for future using)
		print FH encode_json({
			args    => \@_,
			compression => $compression,
			conf    => $conf,
			format  => $fmt,
			

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