Group
Extension

Matches 35359

Mojo-Snoo ( C/CU/CURTIS/Mojo-Snoo-0.15.tar.gz, CURTIS, 2015; MetaCPAN )
Mojo-Snoo/lib/Mojo/Snoo/Subreddit.pm ( view source; MetaCPAN )
k?
    my $cb = ref $_[-1] eq 'CODE' ? pop : undef;
    $res->$cb if $cb;

    my @mods = @{$res->json->{data}{children}};

    # FIXME should we return User objects instead? or combined?
    my @coll
   my $pkg = 'Mojo::Snoo::Subreddit::About::' . $self->name;
    $self->_monkey_patch($pkg, $res->json->{data});
}

sub _toggle_subscribe {
    my ($self, $action) = @_;

    # Calling $self->about fe
ams->{title}  //= $title // '';
    $params->{sr}       = $self->name;
    $params->{api_type} = 'json';
    $params->{kind}     = $kind;

    my $res = $self->_do_request('POST', '/api/submit', %$par
Apache-Hadoop-Watcher ( S/SN/SNEHASIS/Apache-Hadoop-Watcher-0.01.tar.gz, SNEHASIS, 2015; MetaCPAN )
Apache-Hadoop-Watcher/lib/Apache/Hadoop/Watcher/Yarn.pm ( view source; MetaCPAN )
hasis Sinha
#
package Apache::Hadoop::Watcher::Yarn;

use 5.010001;
use strict;
use warnings;
use JSON;

require Apache::Hadoop::Watcher::Base;

our @ISA = qw();
our $VERSION = '0.01';


# Preloaded m
,"\n" if $self->{'debug'};

	# actual work
	$self->{'out'} = (decode_json $base->_wget (url=>$url)); #->{'nodeInfo'};
	$base->_jsontr ( $self->{'out'} );
	return $self;
}

1;

__END__

=head1 NAME

Ap
Apache-Hadoop-Watcher ( S/SN/SNEHASIS/Apache-Hadoop-Watcher-0.01.tar.gz, SNEHASIS, 2015; MetaCPAN )
Apache-Hadoop-Watcher/lib/Apache/Hadoop/Watcher/Jmx.pm ( view source; MetaCPAN )
hasis Sinha
#
package Apache::Hadoop::Watcher::Jmx;

use 5.010001;
use strict;
use warnings;

use JSON;

require Apache::Hadoop::Watcher::Base;

our @ISA = qw();
our $VERSION = '0.01';


# Preloaded m
' ', $_;
			}
			next;
		}

		print sprintf "%30s  %s\n", $e->{'key'}, $e->{'value'};
	}
}

# jmx json methods
sub _query {
	my ($self, %opts) = (@_);
	my $base = Apache::Hadoop::Watcher::Base->new;
	
 $self->{'jmx'};
	$self->{'out'} = (decode_json $base->_wget (url=>$url))->{'beans'};
	#$self->{'out'} = (decode_json $base->_wget (url=>$url));
	$base->_jsonjmx ( $self->{'out'} );
	$self->{'out'} =~
Apache-Hadoop-Watcher ( S/SN/SNEHASIS/Apache-Hadoop-Watcher-0.01.tar.gz, SNEHASIS, 2015; MetaCPAN )
Apache-Hadoop-Watcher/lib/Apache/Hadoop/Watcher/Conf.pm ( view source; MetaCPAN )
ckage Apache::Hadoop::Watcher::Conf;

use 5.010001;
use strict;
use warnings;

use XML::Twig;
use JSON;

require Apache::Hadoop::Watcher::Base;

our @ISA = qw();
our $VERSION = '0.01';


# methods
sub
ations


=head1 SEE ALSO

  Apache::Hadoop::Watcher
  Apache::Hadoop::Watcher::Base
  XML::Twig
  JSON


=head1 AUTHOR

Snehasis Sinha, E<lt>snehasis@cpan.orgE<gt>


=head1 COPYRIGHT AND LICENSE

Copy
Net-SixXS ( R/RO/ROAM/Net-SixXS-v0.1.1.tar.gz, ROAM, 2015; MetaCPAN )
Net-SixXS/lib/Net/SixXS/TIC/Server/AnyEvent.pm ( view source; MetaCPAN )


  my %tunnels = (
      T00001 => Net::SixXS::Data::Tunnel->from_json(\%data1),
      T00002 => Net::SixXS::Data::Tunnel->from_json(\%data2),
  );
  my $s = Net::SixXS::Server::AnyEvent->new(usernam
Mojo-Snoo ( C/CU/CURTIS/Mojo-Snoo-0.15.tar.gz, CURTIS, 2015; MetaCPAN )
Mojo-Snoo/lib/Mojo/Snoo/User.pm ( view source; MetaCPAN )
my ($captcha_id, $captcha_text) = $self->_solve_captcha();

    my %form = (
        api_type => 'json',
        captcha  => $captcha_text,
        iden     => $captcha_id,
        subject  => 'subjec
Net-SixXS ( R/RO/ROAM/Net-SixXS-v0.1.1.tar.gz, ROAM, 2015; MetaCPAN )
Net-SixXS/lib/Net/SixXS/TIC/Server/Inetd.pm ( view source; MetaCPAN )


  my %tunnels = (
      T00001 => Net::SixXS::Data::Tunnel->from_json(\%data1),
      T00002 => Net::SixXS::Data::Tunnel->from_json(\%data2),
  );
  my $s = Net::SixXS::Server::Inetd->new(username =
Queue-Q ( M/MA/MATTK/Queue-Q-0.31.tar.gz, MATTK, 2015; MetaCPAN )
Queue-Q/lib/Queue/Q/ReliableFIFO/CLI.pm ( view source; MetaCPAN )
age Queue::Q::ReliableFIFO::CLI;
use strict;
use Redis;
use Term::ReadLine;
use Data::Dumper;
use JSON::XS;
use File::Slurp;
use Carp qw(croak);

use Queue::Q::ReliableFIFO::Redis;
use Class::XSAccess

    my %conf;
    if (!$params{ignore_config_file} and -f $conf_file) {
        %conf = %{decode_json(read_file($conf_file))};
        $self->open(server => $conf{server},  port => $conf{port})
     
 $self->path;
        }
        $conf{history} = \@history;
        write_file($conf_file, encode_json(\%conf));

        exit 0;
    };

    my %commands = map { $_ => undef } (qw(
        open
     
Queue-Q ( M/MA/MATTK/Queue-Q-0.31.tar.gz, MATTK, 2015; MetaCPAN )
Queue-Q/lib/Queue/Q/ReliableFIFO/Redis.pm ( view source; MetaCPAN )
, queue_name => 'other_queue'
  );

  # Producer:
  $q->enqueue_item("foo");
  # You can pass any JSON-serializable data structure
  $q->enqueue_item({ bar => "baz" });
  $q->enqueue_item({ id=> 12},{
> are serialized
using JSON (cf. L<JSON::XS>), so
any data structures supported by that can be enqueued.
We use JSON because that is supported at the Lua side as well (the cjson
library).

The impleme
MooseX-Log-Log4perl ( L/LA/LAMMEL/MooseX-Log-Log4perl-0.47.tar.gz, LAMMEL, 2015; MetaCPAN )
MooseX-Log-Log4perl/lib/MooseX/Log/Log4perl.pm ( view source; MetaCPAN )
::Log::LogDispatch> this can be thought of as a common logging interface.

  package MyApp::View::JSON;

  extends 'MyApp::View';
  with 'MooseX:Log::Log4perl';

  sub bar {
    $self->logger->info("E
Limper-SendFile ( A/AS/ASHLEYW/Limper-SendFile-0.005.tar.gz, ASHLEYW, 2015; MetaCPAN )
Limper-SendFile/lib/Limper/SendFile.pm ( view source; MetaCPAN )
erl 5 you may have available.

=head1 SEE ALSO

L<Limper>

L<Limper::Engine::PSGI>

L<Limper::SendJSON>

=cut

__DATA__
html	text/html
htm	text/html
shtml	text/html
css	text/css
xml	text/xml
gif	image
ff
jar	application/java-archive
war	application/java-archive
ear	application/java-archive
json	application/json
hqx	application/mac-binhex40
doc	application/msword
pdf	application/pdf
ps	application/p
Queue-Q ( M/MA/MATTK/Queue-Q-0.31.tar.gz, MATTK, 2015; MetaCPAN )
Queue-Q/lib/Queue/Q/ReliableFIFO/Item.pm ( view source; MetaCPAN )
ing, JSON is easier, while Sereal::* is
# faster (about 7%) and delivers smaller serialized blobs.
use JSON::XS; # use the real stuff, no fall back on pure Perl JSON please
my $serializer   = JSON::XS
->new->utf8->pretty(0);
my $deserializer = JSON::XS->new->utf8->pretty(0);

#use Sereal::Encoder;
#use Sereal::Decoder;
#my $serializer   = Sereal::Encoder->new();
#my $deserializer = Sereal::Decoder-
App-Skeletor ( J/JJ/JJNAPIORK/App-Skeletor-0.005.tar.gz, JJNAPIORK, 2015; MetaCPAN )
App-Skeletor/lib/App/Skeletor.pm ( view source; MetaCPAN )
ir';
use Module::Runtime 'use_module';
use Path::Tiny;
use Template::Tiny;
use File::HomeDir;
use JSON::PP;

our $VERSION = '0.005';

sub getopt_spec {
  return (
    'skeletor %o',
    ['template|t=s
->my_home, '.skeletor.json'))) {
    print "Found user options at: $saved_options_path\n";
    my $json_opts = decode_json($saved_options_path->slurp);
    @args = (@args, %$json_opts);
  }

  local @
URATION

You may store repeated or common configuration options in ~/skeletor.json, for example:

    cat ~/.skeletor.json 
    {
      "--author": "John Nap"
    }

Then when you build a project the 
DBIx-Class-Sims-REST ( R/RK/RKINYON/DBIx-Class-Sims-REST-0.000012.tar.gz, RKINYON, 2015; MetaCPAN )
DBIx-Class-Sims-REST/lib/DBIx/Class/Sims/REST.pm ( view source; MetaCPAN )
r_transport {
  my $class = shift;
  my ($sims) = @_;
  # Convert objects into columns/values for JSON encoding.
  my %flattened;
  while ( my ($k, $v) = each %{$sims} ) {
    $flattened{$k} = [ map {
or_transport($sims);
  }

  return $rv // { error => 'No actions taken' };
}

use JSON::XS qw( encode_json decode_json );
use Plack::Request;
use Web::Simple; # Needed for the prototypes

sub dispatch
v);
      my $request = decode_json($r->content);

      my $rv = $class->do_sims( $request );

      [ 200, [ 'Content-type', 'application/json' ],
        [ encode_json($rv) ],
      ]
    },
  }
}
Catalyst-TraitFor-Request-ContentNegotiationHelpers ( J/JJ/JJNAPIORK/Catalyst-TraitFor-Request-ContentNegotiationHelpers-0.006.tar.gz, JJNAPIORK, 2015; MetaCPAN )
Catalyst-TraitFor-Request-ContentNegotiationHelpers/lib/Catalyst/ActionRole/ProvidesMedia.pm ( view source; MetaCPAN )
uted if the request accept header like prefers and accepts
      # type 'application/json'.
      sub myaction_JSON :Action { }

      # Executed if the request accept header like prefers and accepts
xecuted if the request accept header like prefers and accepts
    # type 'application/json'.
    sub myaction_JSON :Action { }

    # Executed if the request accept header like prefers and accepts
   
dotconfig ( P/PU/PUNYTAN/dotconfig-0.04.tar.gz, PUNYTAN, 2015; MetaCPAN )
dotconfig/lib/dotconfig.pm ( view source; MetaCPAN )
ckage
    dotconfig::Decoder;
use strict;
use warnings;
use Math::BigInt;
use Math::BigFloat;
use JSON ();
use constant {
    DC_SPACE           => ' ',
    DC_TAB             => "\t",
    DC_LF      
shift->_consume_if(DC_FALSE) ? \JSON::false : undef }
sub true  { shift->_consume_if(DC_TRUE)  ? \JSON::true  : undef }
sub null  { shift->_consume_if(DC_NULL)  ? \JSON::null  : undef }

sub number {
SMS-Send-NexmoUnicode ( J/JN/JNLIN/SMS-Send-NexmoUnicode-0.02.tar.gz, JNLIN, 2015; MetaCPAN )
SMS-Send-NexmoUnicode/lib/SMS/Send/NexmoUnicode.pm ( view source; MetaCPAN )
 delete $params{to} );

   my $nexmo = Nexmo::SMS->new(
	   server => 'https://rest.nexmo.com/sms/json',
	   username => $self->{"_username"},
	   password => $self->{"_password"},
	   );

   my $sms 
Dancer2-Plugin-HTTP-Bundle ( V/VA/VANHOESEL/Dancer2-Plugin-HTTP-Bundle-0.02.tar.gz, VANHOESEL, 2015; MetaCPAN )
Dancer2-Plugin-HTTP-Bundle/lib/Dancer2/Plugin/HTTP/Bundle.pm ( view source; MetaCPAN )
ject->date_last_modified
        ) =>sub { http_choose_accept (
            'application/json' => sub { to_json $secret_object },
            'application/xml'  => sub { to_xml  $secret_object },
    
nt-type does the client want
        http_choose_accept (
            
            [ 'application/json', 'application/xml' ] => sub {
                    
                # find the resource
         
            for (http_accept) {
                        when ('application/json') {
                            return to_json ( $secret_object )
                        }
                        when
Catalyst-TraitFor-Request-ContentNegotiationHelpers ( J/JJ/JJNAPIORK/Catalyst-TraitFor-Request-ContentNegotiationHelpers-0.006.tar.gz, JJNAPIORK, 2015; MetaCPAN )
Catalyst-TraitFor-Request-ContentNegotiationHelpers/lib/Catalyst/TraitFor/Request/ContentNegotiationHelpers.pm ( view source; MetaCPAN )
 {
      my ($self, $c) = @_;
      my $best_media_type = $c->req->choose_media_type('application/json', 'text/html');
    }

    sub choose :Local {
      my ($self, $c) = @_;
      my $body = $c->re
'no_match' => sub { 'none' },
        'text/html' => sub { 'html' },
        'application/json' => sub { 'json' });

      $c->res->body($body);
    }

    sub filter : Local {
      my ($self, $c) = 
 of the request to make decisions about what to do,
for example what format to return (HTML, XML, JSON, other).  This role can
be applied to your L<Catalyst::Request> to add some useful helper methods
RTx-FillTicketData ( C/CH/CHESNOKOV/RTx-FillTicketData-0.03.tar.gz, CHESNOKOV, 2015; MetaCPAN )
RTx-FillTicketData/lib/RTx/FillTicketData.pm ( view source; MetaCPAN )
s file
    Set($FillTicketDataSettingsFile =>
        '/home/rt/rt4/etc/fill_ticket_data_settings.json');

=head1 DESCRIPTION

The purpose of this plugin is to provide a "Fill data" button, which, giv
 ID, will send this ID to the server and retrieve data according to the
configuration provided in JSON config file. Possible external sources are:
database, shell command output, plain text specified 
c/fill_ticket_data_settings.json (or etc/ticket_data_settings_ru.json) for
the example of settings file.

=cut

use DBI;
use Digest::MD5 qw(md5_hex);
use JSON qw(decode_json);

#use Data::Dumper;
#loc

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