Group
Extension

Matches 35358

CPAN-Meta ( D/DA/DAGOLDEN/CPAN-Meta-2.150010.tar.gz, DAGOLDEN, 2016; MetaCPAN )
CPAN-Meta/lib/CPAN/Meta/Prereqs.pm ( view source; MetaCPAN )
b __legal_types  { qw(requires recommends suggests conflicts) }

# expect a prereq spec from META.json -- rjbs, 2010-04-11
sub new {
  my ($class, $prereq_spec) = @_;
  $prereq_spec ||= {};

  my %is_
CPAN-Meta ( D/DA/DAGOLDEN/CPAN-Meta-2.150010.tar.gz, DAGOLDEN, 2016; MetaCPAN )
CPAN-Meta/lib/CPAN/Meta/Validator.pm ( view source; MetaCPAN )
idator;

our $VERSION = '2.150010';

#pod =head1 SYNOPSIS
#pod
#pod   my $struct = decode_json_file('META.json');
#pod
#pod   my $cmv = CPAN::Meta::Validator->new( $struct );
#pod
#pod   unless ( $cmv
data structures

=head1 VERSION

version 2.150010

=head1 SYNOPSIS

  my $struct = decode_json_file('META.json');

  my $cmv = CPAN::Meta::Validator->new( $struct );

  unless ( $cmv->is_valid ) {
   
WebService-Instagram ( D/DA/DAYANUNE/WebService-Instagram-0.09.tar.gz, DAYANUNE, 2016; MetaCPAN )
WebService-Instagram/lib/WebService/Instagram.pm ( view source; MetaCPAN )
package WebService::Instagram;

use 5.006;
use strict;
use warnings;

use JSON;
use LWP::UserAgent;
use URI;
use Carp;
use Data::Dumper;
use HTTP::Request;
use Safe::Isa;

our $VERSION = '0.09';

use 
application/x-www-form-urlencoded'); 
        $req->content($uri->query); 
        my $res = from_json($self->{browser}->request($req)->content); 
#	print Dumper $res;
#	$self->{access_token} = $res->
e = $self->{browser}->get($uri->as_string);
	my $ret = $response->decoded_content;
	return decode_json $ret;
}

1; # End of WebService::Instagram
__END__

=head1 NAME

WebService::Instagram - Simple I
Bot-Cobalt ( A/AV/AVENJ/Bot-Cobalt-0.021003.tar.gz, AVENJ, 2016; MetaCPAN )
Bot-Cobalt/lib/Bot/Cobalt/Serializer.pm ( view source; MetaCPAN )

use Carp;
use Scalar::Util 'reftype';

## These two must be present anyway:
use YAML::XS ();
use JSON::MaybeXS ();

use Fcntl ':flock';
use Time::HiRes  'sleep';
use Scalar::Util 'blessed';

use Bot:

  builder   => sub {
    +{
      YAML   => 'YAML::Syck',
      YAMLXS => 'YAML::XS',
      JSON   => 'JSON::MaybeXS',
    }
  },
);

has yamlxs_from_ref => (
  is        => 'rw',
  lazy      => 1,
 
ire YAML::Syck; YAML::Syck::Load($_[0]) },
);

has json_from_ref => (
  is        => 'rw',
  lazy      => 1,
  coerce    => sub {
    my $jsify = JSON::MaybeXS->new(
      utf8 => 1, allow_nonref => 1
Bot-Cobalt ( A/AV/AVENJ/Bot-Cobalt-0.021003.tar.gz, AVENJ, 2016; MetaCPAN )
Bot-Cobalt/lib/Bot/Cobalt/DB.pm ( view source; MetaCPAN )
 => 'rw',
  isa       => Object,
  builder   => sub {
    Bot::Cobalt::Serializer->new(Format => 'JSON')
  },
);
{ no warnings 'once'; *Serializer = *serializer; }

## _orig is the original tie().
has
e_key(
    sub { $_ .= "\0" }
  );

  ## JSONified values
  $self->DB->filter_fetch_value(
    sub {
      s/\0$//;
      $_ = $self->serializer->ref_from_json($_)
        unless $self->raw;
    }
  )
;
  $self->DB->filter_store_value(
    sub {
      $_ = $self->serializer->json_from_ref($_)
        unless $self->raw;
      $_ .= "\0";
    }
  );

  1
}

sub dbclose {
  my ($self) = @_;

  unless 
DOM-Tiny ( M/MS/MSTROUT/DOM-Tiny-0.005.tar.gz, MSTROUT, 2016; MetaCPAN )
DOM-Tiny/lib/DOM/Tiny.pm ( view source; MetaCPAN )
tware, licensed under:

  The Artistic License 2.0 (GPL Compatible)

=head1 SEE ALSO

L<Mojo::DOM>, L<HTML::TreeBuilder>, L<XML::LibXML>, L<XML::Twig>, L<XML::Smart>

=for Pod::Coverage TO_JSON

=cut
Linux-Slackware-SystemTests ( T/TT/TTKCIAR/Linux-Slackware-SystemTests-0.01.tar.gz, TTKCIAR, 2016; MetaCPAN )
Linux-Slackware-SystemTests/lib/Linux/Slackware/SystemTests.pm ( view source; MetaCPAN )
ests/*.t scripts
#    * the bin/slackware-systemtests test harness

use strict;
use warnings;
use JSON;
use File::Valet;
use Time::HiRes;
use vars qw(@EXPORT @EXPORT_OK @ISA $VERSION);

BEGIN {
    re

        err_ar   => [],
        me       => 'Linux::Slackware::SystemTests',
        js_or    => JSON->new->ascii->allow_nonref->space_after()
    };
    bless ($self, $class);

    foreach my $k0 (k
q "64") {
      # run test specific to 64-bit Slackware
  }

  # If you need to JSONify something, there's already a JSON object
  # instantiated with sane and robust operating parameters:

  ok `/bin
Bot-Cobalt ( A/AV/AVENJ/Bot-Cobalt-0.021003.tar.gz, AVENJ, 2016; MetaCPAN )
Bot-Cobalt/lib/Bot/Cobalt/Plugin/Extras/CPAN.pm ( view source; MetaCPAN )
ot::Cobalt::Common;

use Bot::Cobalt::Serializer;
our $Serializer = Bot::Cobalt::Serializer->new('JSON');

use HTTP::Request;

use Module::CoreList;

use Try::Tiny;

our $HelpText
  = 'try: dist, late
 info for $dist ($status)"
      );
    }
    return PLUGIN_EAT_ALL
  }

  my $json = $response->content;
  unless ($json) {
    broadcast('message',
      $hints->{Context}, $hints->{Channel},
      
ed for $dist",
    );
    return PLUGIN_EAT_ALL
  }

  my $d_hash = 
    try { $Serializer->thaw($json) } 
    catch {
      broadcast( 'message',
        $hints->{Context}, $hints->{Channel},
       
Bot-Cobalt ( A/AV/AVENJ/Bot-Cobalt-0.021003.tar.gz, AVENJ, 2016; MetaCPAN )
Bot-Cobalt/lib/Bot/Cobalt/Manual/Plugins.pod ( view source; MetaCPAN )
serialize arbitrary data structures to some 
standardized format. Serialization formats such as B<JSON> and B<YAML> 
are convenient for "speaking" to other networked applications, sharing 
data, or sa
  ## create a JSON serializer:
  my $jsify = Bot::Cobalt::Serializer->new( Format => 'JSON' );

  ## serialize a perl hash:
  my $ref = { Some => { Deep => [ 'Structure' ] } };
  my $json = $jsify->fr
AnyEvent-Twitter-Stream ( M/MI/MIYAGAWA/AnyEvent-Twitter-Stream-0.28.tar.gz, MIYAGAWA, 2016; MetaCPAN )
AnyEvent-Twitter-Stream/lib/AnyEvent/Twitter/Stream.pm ( view source; MetaCPAN )
PROTOCOL://$STREAMING_SERVER/1.1/statuses/filter.json"   } ],
    sample     => [ GET  => sub { "$PROTOCOL://$STREAMING_SERVER/1.1/statuses/sample.json"   } ],
    firehose   => [ GET  => sub { "$PROT
 sub { "$US_PROTOCOL://$USERSTREAM_SERVER/1.1/user.json"          } ],
    sitestream => [ GET  => sub { "$PROTOCOL://$SITESTREAM_SERVER/1.1/site.json"             } ],

    # DEPRECATED
    links    
{ "$PROTOCOL://$STREAMING_SERVER/1/statuses/links.json"   } ],
    retweet    => [ GET  => sub { "$PROTOCOL://$STREAMING_SERVER/1/statuses/retweet.json" } ],
);

sub new {
    my $class = shift;
    m
IRC-Toolkit ( A/AV/AVENJ/IRC-Toolkit-0.092002.tar.gz, AVENJ, 2016; MetaCPAN )
IRC-Toolkit/lib/IRC/Message/Object.pm ( view source; MetaCPAN )
10 ? $current : substr $current, 0, 510 ;
  }

  (blessed $self)->new(raw_line => $new)
}

sub TO_JSON {
  my ($self) = @_;
  +{
    command => $self->command,
    prefix  => $self->prefix,
    params
TY TO],
  qq[ PUT AN IRCD ON A ROOMBA\n]
unless caller; 1;

=pod

=for Pod::Coverage BUILDARGS TO_JSON has_\w+

=head1 NAME

IRC::Message::Object - Incoming or outgoing IRC events

=head1 SYNOPSIS

  
WebService-Pingboard ( R/RC/RCL/WebService-Pingboard-0.009.tar.gz, RCL, 2016; MetaCPAN )
WebService-Pingboard/lib/WebService/Pingboard.pm ( view source; MetaCPAN )
s::Validate;
use MooseX::WithCache;
use LWP::UserAgent;
use HTTP::Request;
use HTTP::Headers;
use JSON;
use Class::Date qw/gmdate/;
use POSIX; #strftime
use YAML qw/Dump LoadFile DumpFile/;
use Encode
h = HTTP::Headers->new();
    $h->header( 'Content-Type'	=> "application/json" );
    $h->header( 'Accept'	=> "application/json" );

    my $data;
    #Only password flow allows refresh tokens
    if(
TP::Headers->new();
        $h->header( 'Content-Type'	=> "application/json" );
        $h->header( 'Accept'	=> "application/json" );
        $h->header( 'Authorization' => "Bearer " . $self->valid_ac
App-TimeTracker-Command-TellSlack ( D/DO/DOMM/App-TimeTracker-Command-TellSlack-1.001.tar.gz, DOMM, 2016; MetaCPAN )
App-TimeTracker-Command-TellSlack/lib/App/TimeTracker/Command/TellSlack.pm ( view source; MetaCPAN )
a1_hex);
use URI::Escape;
use App::TimeTracker::Utils qw(error_message);
use Encode;
use JSON::XS qw(encode_json);

has 'tell_slack' => (
    is            => 'ro',
    isa           => 'Bool',
    de
oad->{username} = $cfg->{username} if $cfg->{username};

    $request->content(decode_utf8(encode_json($payload)));
    my $res = $ua->request($request);
    unless ( $res->is_success ) {
        erro
JMAP-Validation ( A/AL/ALFIE/JMAP-Validation-0.005.tar.gz, ALFIE, 2016; MetaCPAN )
JMAP-Validation/lib/JMAP/Validation/Tests/Boolean.pm ( view source; MetaCPAN )
package JMAP::Validation::Tests::Boolean;

use strict;
use warnings;

sub is_boolean{
  my ($value) = @_;

  return (ref($value) || '') eq 'JSON::PP::Boolean';
}

1;
Test-HTTP-MockServer ( D/DR/DRUOSO/Test-HTTP-MockServer-v0.0.1.tar.gz, DRUOSO, 2016; MetaCPAN )
Test-HTTP-MockServer/lib/Test/HTTP/MockServer/REST.pm ( view source; MetaCPAN )
package Test::HTTP::MockServer::REST;
use strict;
use warnings;
use JSON::XS;

sub new {
    my ($class) = shift;
    $class = ref $class || $class;
    my %dispatch = @_;
    return bless { d => \%di
     if ($input_content && $input_ct && $input_ct eq 'application/json') {
            eval {
                $input_data = decode_json $req->content;
            };
            if ($@) {
            
 && $a eq 'application/json') {
                eval {
                    my $out = encode_json $return_data;
                    $res->header('Content-type', 'application/json');
                   
XML-LibXML-jQuery ( C/CA/CAFEGRATZ/XML-LibXML-jQuery-0.08.tar.gz, CAFEGRATZ, 2016; MetaCPAN )
XML-LibXML-jQuery/lib/XML/LibXML/jQuery.pm ( view source; MetaCPAN )
XML::LibXML;
use HTML::Selector::XPath qw/selector_to_xpath/;
use Carp qw/ confess /;
use JSON qw/ decode_json /;

our $VERSION = "0.08";

our @EXPORT_OK = qw/ j fn /;
our @EXPORT = qw/ j /;

use cons
] =~ /^\d+$/;

    # json array or object
    return decode_json($_[0])
        if  $_[0] =~ /^(?:\{|\[)/;

    # boolean
    return JSON::true  if $_[0] eq 'true';
    return JSON::false if $_[0] eq 
JMAP-Validation ( A/AL/ALFIE/JMAP-Validation-0.005.tar.gz, ALFIE, 2016; MetaCPAN )
JMAP-Validation/lib/JMAP/Validation/Checks/String.pm ( view source; MetaCPAN )
{{

our $is_string = validator(sub {
  my (%params) = @_;

  return (ref($params{got}) || '') eq 'JSON::Typist::String';
});

# }}}

# restrictions {{{

our $is_string_or_null = in_set($is_string, U()
JMAP-Validation ( A/AL/ALFIE/JMAP-Validation-0.005.tar.gz, ALFIE, 2016; MetaCPAN )
JMAP-Validation/lib/JMAP/Validation/Generators/Address.pm ( view source; MetaCPAN )
rators::Address;

use strict;
use warnings;

use JMAP::Validation::Generators::String;
use JSON::PP;
use JSON::Typist;

sub generate {
  my @Addresses;

  foreach my $type (qw{home work billing postal
ring->generate(), undef) {
      foreach my $isDefault (JSON::PP::true, JSON::PP::false) {
        push @Addresses, {
          type      => JSON::Typist::String->new($type),
          label     => $l
JMAP-Validation ( A/AL/ALFIE/JMAP-Validation-0.005.tar.gz, ALFIE, 2016; MetaCPAN )
JMAP-Validation/lib/JMAP/Validation/Generators/Contact.pm ( view source; MetaCPAN )
ion;
use JMAP::Validation::Generators::File;
use JMAP::Validation::Generators::String;
use JSON::PP;
use JSON::Typist;

sub generate {
  my ($type) = @_;

  my @avatars = (
    JMAP::Validation::Gener
Generators::Address::generate()],
    [],
  );

  my @Contacts;

  foreach my $isFlagged (JSON::PP::true, JSON::PP::false) {
    foreach my $avatar (@avatars) {
      foreach my $email (@{$ContactInfo
String->generate(),
                birthday    => JSON::Typist::String->new(fake_past_datetime('%Y-%m-%d')->()),
                anniversary => JSON::Typist::String->new(fake_past_datetime('%Y-%m-%d'
JMAP-Validation ( A/AL/ALFIE/JMAP-Validation-0.005.tar.gz, ALFIE, 2016; MetaCPAN )
JMAP-Validation/lib/JMAP/Validation/Generators/SetError.pm ( view source; MetaCPAN )
::Generators::SetError;

use strict;
use warnings;

use JMAP::Validation::Generators::String;
use JSON::Typist;

my %types = (
  invalidArguments => {
    description => JMAP::Validation::Generators::
ors;

  foreach my $type (@types ? @types : (keys %types)) {
    push @SetErrors, {
      type => JSON::Typist::String->new($type),
      ($types{$type} ? (%{$types{$type}}) : ()),
    };
  }

  retur

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