gent(__PACKAGE__ . ' ' . $WebService::PlayaEvents::VERSION);
$self->content_type('application/json');
$self->base_url('http://playaevents.burningman.com/api/0.2/' . $self->year);
return $
_perl_code {
my $PERL_NAME = '[A-Za-z_][A-Za-z0-9_]*';
# Class name
# Foo::Bar
# JSON::PP::
return 1 if $_[0] =~ /\A
[\+\$]?
(?: $PERL_NAME :: )+
$PERL_NAM
ef access
return 1 if $_[0] =~ /\A
\$ $PERL_NAME -> \{ $PERL_NAME \}
\z/x;
# JSON::XS-ish boolean value
return 1 if $_[0] eq '\1' || $_[0] eq '\1';
return 0;
}
1;
__END_
package Mail::RoundTrip;
use 5.006;
use strict;
use warnings;
use Moo;
use JSON;
use UUID::Tiny qw(:std);
use Email::Sender::Simple qw(sendmail);
use Email::Simple;
use Email::Simple::Creator;
use Fi
ling slashes
my $filename = $self->code;
my $json = encode_json($self->data);
write_file("$spooldir/$filename", {no_clobber => 1}, $json);
}
=head2 get_data(code => $code, spool_dir
slashes
my $filename = $args{code};
my $json = read_file("$spooldir/$filename");
unlink("$spooldir/$filename");
return decode_json($json);
}
=head1 AUTHOR
Chris Travers, C<< <chr
JSON::XS;
use Apache::Hendrix::Route;
use Moose;
use MooseX::FollowPBP;
use MooseX::ClassAttribute;
use Moose::Exporter;
use Template;
use version; our $VERSION = qv(0.3.0);
use DDP;
class_has 'json
' => (
isa => 'Object', is => 'rw',
default => sub { JSON::XS->new()->allow_blessed(1)->convert_blessed(1) },
);
class_has 'handlers' => ( isa => 'HashRef[ArrayRef]', is => 'rw', d
et_method->( \%params, $r, $route );
if ( ref $result ) {
return make_json( $r, $result );
}
return $result;
}
} ## end ROUTE: for my $r
qw($VERSION);
$VERSION = '0.28';
use base qw(Net::NicoVideo::Content Class::Accessor::Fast);
use JSON 2.01;
use vars qw(@Members);
@Members = qw(
id
mylistgroup
mylistitem
error
status
);
__PACKAGE
->load($_[0]) if( defined $_[0] );
my $json = decode_json( $self->_decoded_content );
# member "status" exists in all case
$self->status( $json->{status} );
# member "error" exists
Content::NicoAPI::Error->new($json->{error}) )
if( $json->{error} );
# member "id" in a case /mylist/add
$self->id( $json->{id} )
if( exists $json->{id} );
# member "myli
ent::Socket;
use Getopt::Long;
use JSON::PP;
our $VERSION = "0.03";
$| = 1;
$AnyEvent::Log::FILTER->level("info");
our %Config = (
config_file => "rhttp.json",
cert_file => "",
key_fil
r exit;
if ($Config{add}) {
my $json_config = config($Config{config_file});
my $add = delete($Config{add});
%Config = %{$json_config} if defined $json_config;
if ($add =~ m#^vhost:(
e}, JSON::PP->new->ascii->pretty->encode(\%Config));
exit;
}
if ($Config{del}) {
my $json_config = config($Config{config_file});
my $del = delete($Config{del});
%Config = %{$json_co
:
$HOME/.local/share/.path_isdev_heuristicset_fromconfig/config.json
$HOME/.path_isdev_heuristicset_fromconfig/config.json
Which ever one it is unfortunately dependent on the sort of mood Fi
n MetaPOD::JSON v1.1.0
{
"namespace":"Path::IsDev::HeuristicSet::FromConfig",
"interface":"single_class",
"does":"Path::IsDev::Role::HeuristicSet::Simple"
}
=end MetaPOD::JSON
=head1 A
ncy::AST::Node of some kind
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Gentoo::Dependency::AST",
"interface":"single_class"
}
=end MetaPOD::JSON
=head1 SUPPORTED FEATURES
=head2 C<use?>
env_true('RELEASE_TESTING') ) {
require CPAN::Meta;
my $meta = CPAN::Meta->load_file('META.json');
my $prereqs = $meta->effective_prereqs;
my $reqs = $prereqs->requirements_for( 'develop
e types.
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Gentoo::Dependency::AST::Node",
"interface":"class",
"inherits":"Class::Tiny::Object"
}
=end MetaPOD::JSON
=head1 AUTHOR
Kent Fred
=> sub { 'Path::IsDev::HeuristicSet::FromConfig' },
config_file => sub { 'config.json' },
config_file_full => sub { _path( $_[0]->config->configdir )->child( $_[0]->config_file ) },
=> $_[0]->dist,
module => $_[0]->module,
);
},
decoder => sub {
require JSON;
return JSON->new();
},
data => sub {
$_[0]->decoder->decode( $_[0]->config_file_full->slurp_
fig
=head2 C<config_file>
The name of the file relative to the configuration C<dir>
config.json
=head2 C<config_file_full>
The full path to the C<config> file.
If not specified, combined fro
stack();
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Gentoo::Dependency::AST::State",
"interface":"class",
"inherits":"Class::Tiny::Object"
}
=end MetaPOD::JSON
=head1 AUTHOR
Kent Fre
begin MetaPOD::JSON v1.1.0
{
"namespace":"Gentoo::Dependency::AST::Node::Group::Use",
"interface":"class",
"inherits":"Gentoo::Dependency::AST::Node"
}
=end MetaPOD::JSON
=head1 AUTHOR
5.10.1;
use strict;
use warnings;
use Data::Dumper;
use Scalar::Util qw(looks_like_number);
use JSON;
use LWP::UserAgent;
use LWP::Protocol::https;
use RT::Extension::PushoverNotify::PushoverNoti
orting');
return 0;
}
$cfg->{'endpoint'} //= 'https://api.pushover.net/1/messages.json';
if (!defined($self->TemplateObj)) {
die("Template must be specified for invocations
$self->{'message'} );
if ($response->is_success) {
my(%r) = %{decode_json($response->decoded_content)};
if (defined($r{'receipt'})) {
#
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Gentoo::Dependency::AST::Node::Group::Or",
"interface":"class",
"inherits":"Gentoo::Dependency::AST::Node"
}
=end MetaPOD::JSON
=head1 AUTHOR
P;
# ABSTRACT: Perl interface to Taobao IP API
use strict;
use warnings;
use utf8;
use Carp;
use JSON::XS;
use LWP::UserAgent;
our $VERSION = '0.03'; # VERSION
binmode STDOUT, ':encoding(UTF8)';
s
nt->new;
my $res = $ua->get($full_url);
if ( $res->is_success )
{
my $info = JSON::XS->new->decode( $res->content );
if ( $info->{code} == 0 )
{
%$self
etaPOD::JSON v1.1.0
{
"namespace":"Gentoo::Dependency::AST::Node::Group::NotUse",
"interface":"class",
"inherits":"Gentoo::Dependency::AST::Node::Group::Use"
}
=end MetaPOD::JSON
=head
rnings FATAL => 'all';
use Time::HiRes qw(gettimeofday);
use Math::Random::Secure qw(irand);
use JSON;
use MIME::Base64 qw(decode_base64 decode_base64url encode_base64url);
use Crypt::Mac::HMAC qw( h
2::Test - map = \n";
p $map;
my $json = encode_json $map;
print "Net::PT2::Test - json = \n";
p $json;
my $b64 = encode_base64url $json;
print "Net::PT2::Test - base64 url =
st - hmac = \n";
p $hmac;
my $json2 = decode_base64url $b64;
print "Net:PT2::Test - json2 = \n";
p $json2;
my $map2 = decode_json $json2;
print "Net:PT2::Test - map2 = \n
begin MetaPOD::JSON v1.1.0
{
"namespace":"Gentoo::Dependency::AST::Node::Group::And",
"interface":"class",
"inherits":"Gentoo::Dependency::AST::Node"
}
=end MetaPOD::JSON
=head1 AUTHOR
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Gentoo::Dependency::AST::Node::TopLevel",
"interface":"class",
"inherits":"Gentoo::Dependency::AST::Node"
}
=end MetaPOD::JSON
=head1 AUTHOR