Group
Extension

Matches 35358

Task-KiokuDB ( D/DO/DOY/Task-KiokuDB-0.07.tar.gz, DOY, 2012; MetaCPAN )
Task-KiokuDB/lib/Task/KiokuDB.pm ( view source; MetaCPAN )


Defaults to false, unless C<uuid.h> can be found and you have a compiler.

=item L<JSON::XS>

Provides faster JSON performance.

Defaults to true if you have a compiler.

=item L<YAML::XS>

Allows d
App-PipeFilter ( R/RC/RCAPUTO/App-PipeFilter-0.005.tar.gz, RCAPUTO, 2012; MetaCPAN )
App-PipeFilter/lib/App/PipeFilter/JsonMap.pm ( view source; MetaCPAN )
package App::PipeFilter::JsonMap;
{
  $App::PipeFilter::JsonMap::VERSION = '0.005';
}

use Moose;
extends 'App::PipeFilter::Generic::Json';

has i => (
  is            => 'rw',
  isa           => 'Arr
lter::JsonMap - map input fields to output fields by renaming them

=head1 VERSION

version 0.005

=head1 SYNOPSIS

  #!/usr/bin/perl
  use App::PipeFilter::JsonMap;
  exit App::PipeFilter::JsonMap->n
ilter::JsonMap implements the jmap(1) pipeline filter.  It
renames JSON object fields by mapping input field names to new ones on
output.

This class subclasses L<App::PipeFilter::Generic::Json>.

=he
App-PipeFilter ( R/RC/RCAPUTO/App-PipeFilter-0.005.tar.gz, RCAPUTO, 2012; MetaCPAN )
App-PipeFilter/lib/App/PipeFilter/JsonSort.pm ( view source; MetaCPAN )
::JsonSort;
{
  $App::PipeFilter::JsonSort::VERSION = '0.005';
}

use Moose;
extends 'App::PipeFilter::Generic';
with qw(
  App::PipeFilter::Role::Reader::Sysread
  App::PipeFilter::Role::Input::Json
  App::PipeFilter::Role::Writer::Print
  App::PipeFilter::Role::Transform::None
);

use JSON::XS;

has k => (
  is            => 'rw',
  isa           => 'ArrayRef',
  default       => sub { die "requ
("\t", @sortable{@fields}, encode_json($_)) . "\n";
  } @_;
}

1;

__END__

=pod

=head1 NAME

App::PipeFilter::JsonSort - a sort(1)-like filter that understands JSON fields

=head1 VERSION

version 0
Parse-FieldPath ( P/PB/PBOYD/Parse-FieldPath-0.005.tar.gz, PBOYD, 2012; MetaCPAN )
Parse-FieldPath/lib/Parse/FieldPath.pm ( view source; MetaCPAN )
=> Cow::Teeth->new,
  );

And you want a hash containing some of those fields (perhaps to pass to
JSON::XS, or something). Then you can do this:

  use Parse::FieldPath qw/extract_fields/;

  my $cow_
Catalyst-Authentication-Store-KiokuDB ( R/RB/RBERJON/Catalyst-Authentication-Store-KiokuDB-0.03.tar.gz, RBERJON, 2012; MetaCPAN )
Catalyst-Authentication-Store-KiokuDB/lib/Catalyst/Authentication/User/KiokuDB.pm ( view source; MetaCPAN )
les => (
    isa         => 'ArrayRef',
    is          => 'rw',
    auto_deref  => 1,
);

sub TO_JSON {
    my $self = shift;
    my %ret;
    for my $k (qw/id username password crypted_password hash
ASP4 ( J/JO/JOHND/ASP4-1.087.tar.gz, JOHND, 2012; MetaCPAN )
ASP4/lib/ASP4/StaticHandler.pm ( view source; MetaCPAN )
g',
    png   => 'image/png',
    bmp   => 'image/bmp',
    gif   => 'image/gif',
    json  => 'application/x-json',
    css   => 'text/css',
    pdf   => 'application/x-pdf',
    js    => 'text/javas
BPM-Engine ( S/SI/SITETECH/BPM-Engine-0.01.tar.gz, SITETECH, 2012; MetaCPAN )
BPM-Engine/lib/BPM/Engine/Util/ExpressionEvaluator.pm ( view source; MetaCPAN )
 = sub { $args{$param}->TO_JSON; } };
        eval { $params->{$param} = delete($args{$param})->TO_JSON; };
        if($@) {
            throw_param error => "Could not jsonize $param: $@";
          
ZenIRCBot ( A/AG/AGJ/ZenIRCBot-0.01_01.tar.gz, AGJ, 2012; MetaCPAN )
ZenIRCBot/lib/ZenIRCBot.pm ( view source; MetaCPAN )
RCBot;

use 5.010;
use strict;
use warnings;

our $VERSION = '0.01_01';

use AnyEvent::Redis;
use JSON;

=head1 NAME

ZenIRCBot - Perl API for ZenIRCBot

=head1 SYNOPSIS

  use ZenIRCBot;

  my $bot =
ent->subscribe('in', sub {
        my ($raw, $channel) = @_;
        my $json = JSON->new->allow_nonref;
        my $msg = $json->decode($raw);
        &{$func}($msg, $channel);
    });
}

# Blocking 
$to];
    }

    for my $channel (@{$to}) {
        my $json = JSON->new->allow_nonref->allow_blessed->convert_blessed;
        my $data = $json->encode({
            version => 1,
            type =>
AMF-Connection ( A/AR/AREGGIORI/AMF-Connection-0.32.tar.gz, AREGGIORI, 2012; MetaCPAN )
AMF-Connection/lib/AMF/Connection/InputStream.pm ( view source; MetaCPAN )
$stream_with_options = new AMF::Connection::InputStream($binary_buffer_or_string, 'prefer_number, json_boolean');
  my $int = $stream->readInt();
  my $long = $stream->readLong();

  # ..


=head1 DES
ASP4 ( J/JO/JOHND/ASP4-1.087.tar.gz, JOHND, 2012; MetaCPAN )
ASP4/lib/ASP4/ErrorHandler.pm ( view source; MetaCPAN )
d1 NAME

ASP4::ErrorHandler - Default fatal error handler

=head1 SYNOPSIS

In your C<asp4-config.json>:

  ...
    "errors": {
      "error_handler":    "ASP4::ErrorHandler",
      "mail_errors_to": 
ASP4 ( J/JO/JOHND/ASP4-1.087.tar.gz, JOHND, 2012; MetaCPAN )
ASP4/lib/ASP4/RequestFilter.pm ( view source; MetaCPAN )
onse->Redirect("/login/");
    }# end if()
  }
  
  1;# return true:

Then, in your C<asp4-config.json>:

  {
    ...
    "web": {
      ...
      "request_filters": [
        {
          "uri_match":
App-PipeFilter ( R/RC/RCAPUTO/App-PipeFilter-0.005.tar.gz, RCAPUTO, 2012; MetaCPAN )
App-PipeFilter/lib/App/PipeFilter/MysqlToJson.pm ( view source; MetaCPAN )
package App::PipeFilter::MysqlToJson;
{
  $App::PipeFilter::MysqlToJson::VERSION = '0.005';
}

use Moose;

extends 'App::PipeFilter::Generic';
with qw(
  App::PipeFilter::Role::Reader::LineByLine
  Ap
p::PipeFilter::Role::Output::Json
  App::PipeFilter::Role::Transform::None
);

use JSON::XS;

has _fields => (
  is  => 'rw',
  isa => 'ArrayRef',
);

before filter_file => sub {
  my ($self, $ifh, $o
ysqlToJson - translate mysql batch output to JSON

=head1 VERSION

version 0.005

=head1 SYNOPSIS

Here is the mysql2json(1) pipeline filter.

  #!/usr/bin/perl
  use App::PipeFilter::MysqlToJson;
  e
ASP4x-Router ( J/JO/JOHND/ASP4x-Router-0.022.tar.gz, JOHND, 2012; MetaCPAN )
ASP4x-Router/lib/ASP4x/Router.pm ( view source; MetaCPAN )
<VirtualHost *:80>
  ...
    PerlTransHandler ASP4x::Router
  ...
  </VirtualHost>

% asp4-config.json

  ...
  "web": {
    ...
    "request_filters": [
      ...
      {
        "uri_match": "/.*",
  ...
    ]
    ...
    "routes": [
      {
        "include_routes":   "@ServerRoot@/conf/routes.json"
      },
      {
        "name":   "CreatePage",
        "path":   "/main/:type/create",
       
erally B<*thousands*> of different entries in the "C<routing>"
section of your C<conf/asp4-config.json> file, performance should be B<quite> fast.

=head2 Where can I learn more?

Please see the docum
App-PipeFilter ( R/RC/RCAPUTO/App-PipeFilter-0.005.tar.gz, RCAPUTO, 2012; MetaCPAN )
App-PipeFilter/lib/App/PipeFilter/JsonCut.pm ( view source; MetaCPAN )
::PipeFilter::JsonCut;
{
  $App::PipeFilter::JsonCut::VERSION = '0.005';
}

use Moose;
extends 'App::PipeFilter::Generic::Json';

# TODO - Refactor into a common role?  Duplicated in JsonToTsv.pm.

ha
Filter::JsonCut - return specified fields from a JSON stream

=head1 VERSION

version 0.005

=head1 SYNOPSIS

Here is the jcut(1) pipeline filter.

  #!/usr/bin/perl
  use App::PipeFilter::JsonCut;
  
exit App::PipeFilter::JsonCut->new_with_options()->run();

=head1 DESCRIPTION

App::PipeFilter::JsonCut implements the jcut(1) pipeline filter.  It's
modeled after the UNIX cut(1) utility.
Please see 
ASP4 ( J/JO/JOHND/ASP4-1.087.tar.gz, JOHND, 2012; MetaCPAN )
ASP4/lib/ASP4/API.pm ( view source; MetaCPAN )
ixtures.json' )
  {
    eval { require Data::Properties::JSON };
    $test_data = Data::Properties::JSON->new(
      properties_file => $config->web->application_root . '/etc/test_fixtures.json'
    )
Catalyst-Plugin-Snippets ( B/BO/BOBTFISH/Catalyst-Plugin-Snippets-0.03.tar.gz, BOBTFISH, 2012; MetaCPAN )
Catalyst-Plugin-Snippets/lib/Catalyst/Plugin/Snippets.pm ( view source; MetaCPAN )
e Catalyst::Plugin::Snippets;

use strict;
use warnings;
use MRO::Compat;

BEGIN { eval { require JSON::Syck } }

our $VERSION = "0.03";

sub setup {
    my $app = shift;
    my $ret = $app->maybe::ne
n",
        allow_refs        => 1,
        use_session_id    => 0,
        json_content_type => "application/javascript+json",
        content_type      => "text/plain",
        %{ $app->config->{sni
ponse->body($body);
}

sub _send_snippet_json {
    my ( $c, $options, $value ) = @_;
    $c->_send_snippet(
        $options->{json_content_type},
        JSON::Syck::Dump($value),
    );
}

sub _sen
BPM-Engine ( S/SI/SITETECH/BPM-Engine-0.01.tar.gz, SITETECH, 2012; MetaCPAN )
BPM-Engine/lib/BPM/Engine/Store/ResultRole/WithAttributes.pm ( view source; MetaCPAN )
sor role for ProcessInstance and ActivityInstance

use namespace::autoclean;
use Moose::Role;
use JSON;
use BPM::Engine::Util::ExpressionEvaluator;
use BPM::Engine::Exceptions qw/throw_store throw_par
lue));

        $init->{ScriptType} ||= '';
        if($init->{ScriptType} eq 'json') {
            $ivalue = decode_json($ivalue);
            }
        else {
            $ivalue = $expr->render($iv
Data-SCORM ( O/OS/OSFAMERON/Data-SCORM-0.07.tar.gz, OSFAMERON, 2012; MetaCPAN )
Data-SCORM/lib/Data/SCORM/Manifest.pm ( view source; MetaCPAN )
e XML::Twig;
use Data::SCORM::Organization;
use Data::SCORM::Item;
use Data::SCORM::Resource;
use JSON::Any;

use Data::Dumper;

=head1 NAME

Data::SCORM::Manifest - represent the Manifest

=head1 SYN
rn $class->new(%data);
}

sub as_hoh {
	# turn this into a normal perl data structure that we can jsonnify
	my ($self, $url_base) = @_;
	$url_base ||= '';

	my %organizations = map {
		my $org_name = 
zations,
	  };
}

sub to_json {
	my $self = shift;
	my $hoh = $self->as_hoh(@_); # e.g. the $url_base param
	my $js = JSON::Any->new( allow_blessed => 1 );
	return $js->to_json($hoh);
}

# __PACKAGE__
ASP4 ( J/JO/JOHND/ASP4-1.087.tar.gz, JOHND, 2012; MetaCPAN )
ASP4/lib/ASP4/ConfigLoader.pm ( view source; MetaCPAN )
rict;
use warnings 'all';
use Carp 'confess';
use ASP4::ConfigFinder;
use ASP4::ConfigParser;
use JSON::XS;

our $Configs = { };


#====================================================================
$ifh, '<', $path
    or die "Cannot open '$path' for reading: $!";
  local $/;
  my $doc = decode_json( scalar(<$ifh>) );
  close($ifh);
  
  (my $where = $path) =~ s/\/conf\/[^\/]+$//;
  $Configs->{$
hed on a per-path basis.  Paths are full - i.e. C</usr/local/projects/mysite.com/conf/asp4-config.json> - 
so there should never be a clash between two different configurations on the
same web server,
App-PipeFilter ( R/RC/RCAPUTO/App-PipeFilter-0.005.tar.gz, RCAPUTO, 2012; MetaCPAN )
App-PipeFilter/lib/App/PipeFilter/JsonToPcap.pm ( view source; MetaCPAN )
package App::PipeFilter::JsonToPcap;
{
  $App::PipeFilter::JsonToPcap::VERSION = '0.005';
}

use Moose;
extends 'App::PipeFilter::Generic';

with (
  "App::PipeFilter::Role::Reader::Sysread",
  "App::
PipeFilter::Role::Input::Json",
  "App::PipeFilter::Role::Transform::None",
	"App::PipeFilter::Role::Opener::PcapOutput",
  "App::PipeFilter::Role::Output::Pcap",
  "App::PipeFilter::Role::Writer::Pca

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