Group
Extension

Matches 35359

WebService-Pushover ( S/SH/SHUFF/WebService-Pushover-v1.0.0.tar.gz, SHUFF, 2015; MetaCPAN )
WebService-Pushover/lib/WebService/Pushover.pm ( view source; MetaCPAN )
Parser::JSON;
use Params::Validate qw( :all );
use Readonly;
use URI;

use version; our $VERSION = qv('1.0.0');

# Module implementation here

# constants
Readonly my $REGEX_FORMAT => '^(?:json|xml)$'
messages => '/1/messages.json',
            users    => '/1/users/validate.json',
            receipts => '/1/receipts/$receipt$.json',
            sounds   => '/1/sounds.json',
        };
    },
);

 = @_;
    return WebService::Simple->new(
        response_parser => WebService::Simple::Parser::JSON->new,
        base_url        => $self->base_url,
        debug           => $self->debug,
    );
Wrangler ( C/CL/CLIPLAND/Wrangler-2.15.tar.gz, CLIPLAND, 2015; MetaCPAN )
Wrangler/lib/Wrangler/Wx/Dialog/Settings.pm ( view source; MetaCPAN )
EM_SELECTED EVT_LIST_ITEM_RIGHT_CLICK EVT_MENU EVT_LIST_BEGIN_DRAG);
use base 'Wx::Notebook';
use JSON::XS ();
use Path::Tiny;

sub new {
	my $class = shift;
	my $parent = shift;

	my $self = $class->
howModal == wxID_CANCEL;

	my $path = $file_dialog->GetPath;
	$file_dialog->Destroy;

	my $json = eval { JSON::XS->new->utf8->pretty->encode( { $column_layout => $settings->{wrangler}->config()->{'ui.
tings::FileBrowser::SaveColumnLayout: error encoding fields: $@") if $@;

	path($path)->spew_raw($json) or Wrangler::debug("Settings::FileBrowser::SaveColumnLayout: error writing column file: $path: $
Wrangler ( C/CL/CLIPLAND/Wrangler-2.15.tar.gz, CLIPLAND, 2015; MetaCPAN )
Wrangler/lib/Wrangler/Wx/FormEditor.pm ( view source; MetaCPAN )
Wx::Event qw(EVT_BUTTON EVT_TEXT EVT_CHAR EVT_RIGHT_UP EVT_MENU EVT_COMBOBOX EVT_TEXT_ENTER);
use JSON::XS ();
use Path::Tiny;

sub new {
	my $class  = shift;
	my $parent = shift;
	my $self = $class->
howModal == wxID_CANCEL;

	my $path = $file_dialog->GetPath;
	$file_dialog->Destroy;

	my $json = eval { JSON::XS->new->utf8->pretty->encode( { $editor_name => $editor->{editors}->{ $editor_name } } )
ler::Wx::FormEditor::SaveFieldLayout: error encoding fields: $@") if $@;

	path($path)->spew_raw($json) or Wrangler::debug("Wrangler::Wx::FormEditor::SaveFieldLayout: error writing layout file: $path:
App-LJ ( S/SO/SONGMU/App-LJ-0.02.tar.gz, SONGMU, 2015; MetaCPAN )
App-LJ/lib/App/LJ.pm ( view source; MetaCPAN )
8001;
use strict;
use warnings;

our $VERSION = "0.02";

use JSON::XS ();
use JSON::Color ();

my $_coder;
sub _coder {
    $_coder ||= JSON::XS->new->pretty(1);
}

sub new_with_options {
    my ($cla
lf, $json) = @_;

    ($self->{printer} ||= do {
        !$self->{color} ? sub { chomp(my $l = $_coder->encode(shift)); $l} : sub { JSON::Color::encode_json(shift, {pretty => 1}) }
    })->($json);
}
 {
        my $pre = $`;
        my $maybe_json = $&;
        my $post = $';

        my $json;
        eval {
            $json = _coder->decode($maybe_json);
        };
        if (!$@) {
          
Wrangler ( C/CL/CLIPLAND/Wrangler-2.15.tar.gz, CLIPLAND, 2015; MetaCPAN )
Wrangler/lib/Wrangler/Config.pm ( view source; MetaCPAN )
package Wrangler::Config;

use strict;
use warnings;

use Cwd;
use JSON::XS ();
use File::HomeDir;
use Data::Dumper ();
use Digest::MD5 ();
use Path::Tiny;

# Wx::PlatformInfo; # check for unicode bui
 '.wrangler.json' ){
		Wrangler::debug('Wrangler::Config::read: Planning to read settings file from working-dir: .wrangler.yaml');
		$path = Cwd::cwd . $env{PathSeparator} . '.wrangler.json';
		$env{'
';
	}

	unless($path){
		$path = $env{UserConfigDir};
		$path .= $env{PathSeparator} . '.wrangler.json' if $path;
		if($path){
			$env{'config.file.location'} = 'home-dir';
			Wrangler::debug('Wrangle
Net-Server-ZMQ ( I/ID/IDOPEREL/Net-Server-ZMQ-0.001001.tar.gz, IDOPEREL, 2015; MetaCPAN )
Net-Server-ZMQ/lib/Net/Server/ZMQ.pm ( view source; MetaCPAN )
n clients and workers,
this kind of logic is left to the applications. You can easily implement a JSON-based job broker,
for example, either by taking care of encoding/decoding in the worker code, or 
WWW-GoDaddy-REST ( D/DB/DBARTLE/WWW-GoDaddy-REST-1.00.tar.gz, DBARTLE, 2015; MetaCPAN )
WWW-GoDaddy-REST/lib/WWW/GoDaddy/REST/Shell/DocsCommand.pm ( view source; MetaCPAN )
WW::GoDaddy::REST::Shell::Util qw(get_resource_by_schema_or_uri);
use WWW::GoDaddy::REST::Util qw(json_encode);

sub run_docs {
    my $self = shift;

    my $usage = "Usage:\n docs [schema] [id]\n do
    [ map {"    $_"} keys %fields ],
            [   map {
                    if   ( ref($_) ) { json_encode($_) }
                    else             {$_}
                } values %fields
         
WebService-Amazon-Support ( M/MC/MCOX/WebService-Amazon-Support-v0.0.4.tar.gz, MCOX, 2015; MetaCPAN )
WebService-Amazon-Support/lib/WebService/Amazon/Support.pm ( view source; MetaCPAN )
e 5.006;
use strict;
use warnings;

use AWS::Signature4;
use Carp;
use HTTP::Request::Common;
use JSON;
use LWP;
use Params::Validate qw( :all );
use Readonly;
#use Smart::Comments '###';
#use Smart::
I version
  $self->{api_version} = $API_VERSION;
  
  # for parsing the responses
  $self->{js} = JSON->new->allow_nonref;
  
  # store a request signer for later
  $self->{signer} = AWS::Signature4->
" );
    return undef;
  }
  else {
    $args{params}{Version} = $self->{api_version};
  }
  
  # JSON encode the params
  my( $js ) = $self->{js}->encode( $args{params} );
  ### $js
  
  # set custom
Pulp ( B/BR/BRADH/Pulp-0.001.tar.gz, BRADH, 2015; MetaCPAN )
Pulp/lib/Pulp.pm ( view source; MetaCPAN )
lp::Model -api => 1;
  ...

This will tell Pulp to do all the work for you, and generates a basic JSON API.
Some of the commands are below:

=head3 list

Lists all rows found for a particular resultse
Mojo-Email-Checker-SMTP ( S/SN/SNELIUS/Mojo-Email-Checker-SMTP-0.04.tgz, SNELIUS, 2015; MetaCPAN )
Mojo-Email-Checker-SMTP/lib/Mojo/Email/Checker/SMTP.pm ( view source; MetaCPAN )
elf    = shift;
		my $request = $self->req->json;

		my @emails;
		my $delay = Mojo::IOLoop::Delay->new;
		$delay->on(finish => sub {
				$self->render(json => \@emails);
		});

		my $cb = $delay->beg
WebService-Amazon-DynamoDB ( T/TE/TEAM/WebService-Amazon-DynamoDB-0.005.tar.gz, TEAM, 2015; MetaCPAN )
WebService-Amazon-DynamoDB/lib/WebService/Amazon/DynamoDB.pm ( view source; MetaCPAN )
cut

sub make_request {
	my $self = shift;
	my %args = @_;
	my $target = $args{target};
	my $js = JSON::MaybeXS->new;
	my $req = HTTP::Request->new(
		POST => $self->uri
	);
	$req->header( host => $se
namoDB_'. $self->api_version. '.'. $target );
	$req->header( 'content-type' => 'application/x-amz-json-1.0' );
	my $payload = $js->encode($args{payload});
	$req->content($payload);
	$req->header( 'Con
WebService-Amazon-DynamoDB ( T/TE/TEAM/WebService-Amazon-DynamoDB-0.005.tar.gz, TEAM, 2015; MetaCPAN )
WebService-Amazon-DynamoDB/scripts/latest-regions.pl ( view source; MetaCPAN )
 strict;
use warnings;

use IO::Async;
use Net::Async::HTTP;
use HTML::TreeBuilder qw(-weak);
use JSON::MaybeXS;

my $loop = IO::Async::Loop->new;
$loop->add(
	my $ua = Net::Async::HTTP->new(
		fail_o
> 'tbody'), $ddb;

	binmode STDOUT, ':encoding(UTF-8)';
	my $json = JSON::MaybeXS->new(
		pretty    => 1,
		canonical => 1,
	);
	print $json->encode({
		regions => [
			map {;
				my @cols = map $_->a
Lithium-WebDriver ( D/DM/DMOLIK/Lithium-WebDriver-1.0.0.tar.gz, DMOLIK, 2015; MetaCPAN )
Lithium-WebDriver/lib/Lithium/WebDriver.pm ( view source; MetaCPAN )
package Lithium::WebDriver;

use strict;
use warnings;

use JSON::XS;
use Time::HiRes qw/sleep gettimeofday alarm/;
use LWP::UserAgent;
use MIME::Base64;
use Lithium::WebDriver::Utils;
use HTTP::Reque
 __PACKAGE__,
		use_eval  => 0,
	);
	$self->{LWP}->default_header(
		Content_Type => "application/json;charset=UTF-8");
	# pretty sure this violates RFC 2616
	push @{$self->{LWP}->requests_redirectabl

	};
}

sub _parse_error
{
	my ($self, $error) = @_;
	my $msg = $error;
	eval {
		$error = decode_json $error;
		$self->{error} = $error;
		delete $error->{value}{screen};
		$msg = $error->{value}{mes
Prancer-Plugin-Xslate ( P/PL/PLOCKABY/Prancer-Plugin-Xslate-1.06.tar.gz, PLOCKABY, 2015; MetaCPAN )
Prancer-Plugin-Xslate/lib/Prancer/Plugin/Xslate.pm ( view source; MetaCPAN )
ncer::Plugin::Xslate->load({
        'function' => {
            'encode_json' => sub {
                return JSON::encode_json(@_);
            }
        }
    });

The second way is to the optional
WebService-Amazon-DynamoDB ( T/TE/TEAM/WebService-Amazon-DynamoDB-0.005.tar.gz, TEAM, 2015; MetaCPAN )
WebService-Amazon-DynamoDB/scripts/latest-errors.pl ( view source; MetaCPAN )
 strict;
use warnings;

use IO::Async;
use Net::Async::HTTP;
use HTML::TreeBuilder qw(-weak);
use JSON::MaybeXS;

my $loop = IO::Async::Loop->new;
$loop->add(
	my $ua = Net::Async::HTTP->new(
		fail_o
> 'tbody'), $ddb;

	binmode STDOUT, ':encoding(UTF-8)';
	my $json = JSON::MaybeXS->new(
		pretty    => 1,
		canonical => 1,
	);
	print $json->encode({
		errors => [
			map {;
				my @cols = map $_->as
],
					exception => $cols[1],
					message   => $cols[2],
					cause     => $cols[3],
					retry     => $cols[4] eq 'Y' ? JSON->true : JSON->false,
				}
			} @rows
		]
	});
	Future->wrap;
})->get;

Catalyst-Plugin-AutoCRUD ( O/OL/OLIVER/Catalyst-Plugin-AutoCRUD-2.200002.tar.gz, OLIVER, 2015; MetaCPAN )
Catalyst-Plugin-AutoCRUD/lib/Catalyst/Plugin/AutoCRUD.pm ( view source; MetaCPAN )
ExtJS2
        Controller::DisplayEngine::Skinny
        Model::StorageEngine::DBIC
        View::JSON
        View::TT
    );

    # will auto-load other models, so this one is not -required-
    if 
yst::View::JSON until it is fixed, or users will get scared
# by the warning currently emitted by Catalyst

use Catalyst::View::JSON;
my $json_new = _get_subref('new', 'Catalyst::View::JSON');
{
    n
o warnings 'redefine';
    *Catalyst::View::JSON::new = sub {
        delete $_[2]->{catalyst_component_name};
        goto $json_new;
    };
}

sub _get_subref {
    my $sub = shift;
    my $pkg = sh
Catalyst-Plugin-AutoCRUD ( O/OL/OLIVER/Catalyst-Plugin-AutoCRUD-2.200002.tar.gz, OLIVER, 2015; MetaCPAN )
Catalyst-Plugin-AutoCRUD/lib/Catalyst/Plugin/AutoCRUD/Controller/AJAX.pm ( view source; MetaCPAN )
cpac_dir /}
        = ($page, $limit, $sortby, $dir);

    $c->stash->{current_view} = 'AutoCRUD::JSON';
}

sub end : ActionClass('RenderView') {}

sub create : Chained('base') Args(0) {
    my ($self
rd($c->stash->{cpac}->{g}->{backend}, 'list_stringified');
}

# send our generated config back in JSON for debugging
sub dumpmeta : Chained('base') Args(0) {
    my ($self, $c) = @_;

    # strip the 
# delete the version as it changes
    delete $c->stash->{cpac}->{g}->{version};

    $c->stash->{json_data} = { cpac => {
        meta => $meta,
        conf => $c->stash->{cpac}->{c},
        global
Task-BeLike-GETTY ( G/GE/GETTY/Task-BeLike-GETTY-20150205.000.tar.gz, GETTY, 2015; MetaCPAN )
Task-BeLike-GETTY/lib/Task/BeLike/GETTY.pm ( view source; MetaCPAN )
n::DateTime>

=head3 L<DBIx::Class::InflateColumn::Serializer>

Very useful in combination with L<JSON> to get a simple random data storage
field. 

=head3 L<DBIx::Class::EncodedColumn::Crypt::Eksblow
 a crash more useful, show a stack trace.

=head3 L<Catalyst::View::TT>

=head3 L<Catalyst::View::JSON>

=head3 L<Catalyst::View::Email::Template>

=head3 L<Yeb>

A very simple straightforward Web DSL
Duration>

A good way to display a time duration to humans.

=head3 L<JSON>

The most effective data storage way ...

=head3 L<JSON::MaybeXS>

... and make it quick!

=head3 L<YAML>

If you want the d
Catalyst-Plugin-AutoCRUD ( O/OL/OLIVER/Catalyst-Plugin-AutoCRUD-2.200002.tar.gz, OLIVER, 2015; MetaCPAN )
Catalyst-Plugin-AutoCRUD/lib/Catalyst/Plugin/AutoCRUD/Controller/DisplayEngine/Skinny.pm ( view source; MetaCPAN )
r} = $dir;

    $c->stash->{cpac}->{g}->{frontend} = 'skinny';
}

# pull in data by forwarding to JSON .../list, then send page and render
sub browse : Chained('base') Args(0) {
    my ($self, $c) = @
ew;
    $pager->total_entries($c->stash->{json_data}->{total});
    $pager->entries_per_page($c->stash->{cpac_skinny_limit} eq 'all'
        ? $c->stash->{json_data}->{total} : $c->stash->{cpac_skinny
Catalyst-Plugin-AutoCRUD ( O/OL/OLIVER/Catalyst-Plugin-AutoCRUD-2.200002.tar.gz, OLIVER, 2015; MetaCPAN )
Catalyst-Plugin-AutoCRUD/lib/Catalyst/Plugin/AutoCRUD/Controller/DisplayEngine/ExtJS2.pm ( view source; MetaCPAN )
->{cols}};

    # filter data types coming from the db for Ext
    foreach my $row (@{$c->stash->{json_data}->{rows}}) {
        foreach my $col (@columns) {
            my $ci = $meta->f->{$col};

  
earchrow{$col} = '(click to add filter)';
            }
        }
    }
    unshift @{$c->stash->{json_data}->{rows}}, \%searchrow;
}

sub filter_from_ext : Private {
    my ($self, $c) = @_;
    my $

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