use strict;
use warnings;
=begin MetaPOD::JSON v1.0.0
{
"namespace":"Example",
"inherits": [ "Bar", "Baz" ]
}
=end MetaPOD::JSON
= cwd();
chdir '/tmp/cpan-fixes';
cpanm(@params);
chdir $cwd;
}
sub parse_meta_json {
$_[0] ||= 'META.json';
require CPAN::Meta;
return CPAN::Meta->load_file( $_[0] );
}
sub capture_stdo
ixes;
$caller_stash->{cpanm_fix} = *cpanm_fix;
$caller_stash->{parse_meta_json} = *parse_meta_json;
$caller_stash->{capture_stdout} = *capture_stdout;
$caller_stash->{deploy_st
use strict;
use warnings;
=begin MetaPOD::JSON v1.0.0
{
"namespace":"Example",
"inherits":"Bar"
}
=end MetaPOD::JSON
= $conf->{color} // "yellow";
my $format = $conf->{format} // "json";
while ( my ( $plugin, $results ) = each %$args ) {
$plugin =~ s/.+::Agent:://;
ed: no (defalut: yellow)
format:
type: str
required: no (defalut: json)
=head1 SEE ALSO
L<App::MadEye>, L<HipChat API|https://www.hipchat.com/docs/api/method/rooms/me
__mapping_data {
my $self = shift;
my $content = $self->_mapping_content;
require JSON;
return JSON->new()->utf8(1)->decode($content);
}
## no critic ( RequireArgUnpacking ProhibitBuiltin
ontent of the URL at C<mapping_url>
=head2 _build__mapping_data
returns the decoded data from C<JSON> stored in C<_mapping_content>
=head1 AUTHOR
Kent Fredric <kentfredric@gmail.com>
=head1 COPYR
};
require Scalar::Util;
if ( Scalar::Util::blessed($d) and Scalar::Util::blessed($d) eq 'JSON::XS::Boolean' ) {
$properties{$name} = ( $d ? 1 : undef );
return;
}
if ( $d
tegenerator->generate(
propertydata => ... Property definition from JSON ...
propertyname => ... Property name from JSON ...
index => ... Name of current index ...
typename
if ( env_true('AUTHOR_TESTING') or env_true('RELEASE_TESTING') ) {
my $prereqs = parse_meta_json()->effective_prereqs;
my $reqs = $prereqs->requirements_for( 'develop', 'requires' );
my
= cwd();
chdir '/tmp/cpan-fixes';
cpanm(@params);
chdir $cwd;
}
sub parse_meta_json {
$_[0] ||= 'META.json';
require CPAN::Meta;
return CPAN::Meta->load_file( $_[0] );
}
sub capture_stdo
ixes;
$caller_stash->{cpanm_fix} = *cpanm_fix;
$caller_stash->{parse_meta_json} = *parse_meta_json;
$caller_stash->{capture_stdout} = *capture_stdout;
$caller_stash->{deploy_st
strict;
use warnings;
=begin MetaPOD::JSON v1.0.0
{
"namespace":"Example",
"inherits": [ "Bar", "Baz" ]
}
=end MetaPOD::JSON
=cut
=for MetaPOD::JSON v1.0.0 { "inherits": "Quux" }
=cut
package Net::Duowan::DNS::Zones;
use 5.006;
use warnings;
use strict;
use Carp qw/croak/;
use JSON;
use base 'Net::Duowan::DNS::Common';
use vars qw/$VERSION/;
$VERSION = '1.2.0';
sub new {
my
package Net::Duowan::DNS::Common;
use 5.006;
use warnings;
use strict;
use Carp qw/croak/;
use JSON;
use HTTP::Request::Common qw(POST);
use LWP::UserAgent;
use vars qw/$VERSION/;
$VERSION = '1.2.0'
eq = POST $url, [ %args ];
my $res = $ua->request($req);
if ($res->is_success ) {
return from_json( $res->decoded_content );
} else {
croak $res->status_line;
}
}
1;
if ( env_true('AUTHOR_TESTING') or env_true('RELEASE_TESTING') ) {
my $prereqs = parse_meta_json()->effective_prereqs;
my $reqs = $prereqs->requirements_for( 'develop', 'requires' );
my
package Net::Duowan::DNS::Records;
use 5.006;
use warnings;
use strict;
use Carp qw/croak/;
use JSON;
use base 'Net::Duowan::DNS::Common';
use vars qw/$VERSION/;
$VERSION = '1.2.0';
sub new {
m
less (ref $records) {
croak "records must be an array reference";
}
$records = to_json($records);
my $psp = $self->{psp};
my $token = $self->{token};
my $act = 'bulk_rec_n
package Amon2::Auth::Site::Instagram;
use Mouse;
use JSON;
use LWP::UserAgent;
use URI;
our $VERSION = "0.01";
has client_id => (
is => 'ro',
isa => 'Str',
required => 1,
);
content;
return $callback->{on_error}->($res->decoded_content);
};
$res = decode_json $res->content;
my @args = ($res->{access_token});
push @args, $res->{user} if $self->use
package Net::Duowan::DNS::Owner;
use 5.006;
use warnings;
use strict;
use Carp qw/croak/;
use JSON;
use base 'Net::Duowan::DNS::Common';
use vars qw/$VERSION/;
$VERSION = '1.2.0';
sub new {
my
= cwd();
chdir '/tmp/cpan-fixes';
cpanm(@params);
chdir $cwd;
}
sub parse_meta_json {
$_[0] ||= 'META.json';
require CPAN::Meta;
return CPAN::Meta->load_file( $_[0] );
}
sub capture_stdo
ixes;
$caller_stash->{cpanm_fix} = *cpanm_fix;
$caller_stash->{parse_meta_json} = *parse_meta_json;
$caller_stash->{capture_stdout} = *capture_stdout;
$caller_stash->{deploy_st
if ( env_true('AUTHOR_TESTING') or env_true('RELEASE_TESTING') ) {
my $prereqs = parse_meta_json()->effective_prereqs;
my $reqs = $prereqs->requirements_for( 'develop', 'requires' );
my
package Finance::btce;
use 5.012004;
use strict;
use warnings;
use JSON;
use LWP::UserAgent;
use Carp qw(croak);
use Digest::SHA qw( hmac_sha512_hex);
use WWW::Mechanize;
require Exporter;
our @ISA
EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
our @EXPORT = qw(new);
our $VERSION = '0.1';
our $json = JSON->new->allow_nonref;
sub BTCtoUSD
{
return BtceConversion('btc_usd');
}
sub LTCtoBTC
{
ret
n' => $hash);
$mech->post($url, ['method' => 'getInfo', 'nonce' => $nonce]);
my %apireturn = %{$json->decode($mech->content())};
return \%apireturn;
}
sub TransHistory
{
my ($self, $args) = @_;
@_;
# JSON doesn't know how to serialize anything but hashrefs
# FIXME: Technically we should allow array-ref, as JSON standard allows it
if ( $module eq 'Data::Serializer::JSON' ) {
}
return $obj;
}
# Unwrap JSON previously wrapped with _wrap_invalid()
sub _unwrap_invalid {
my ($module, $obj) = @_;
if ( $module eq 'Data::Serializer::JSON' ) {
if ( ref($obj) e
;
my $obj = MyClass->new( serializer_module => 'JSON' );
my $json = $obj->serialize( "Foo" );
...
my $str = $obj->deserialize( $json );
=head1 DESCRIPTION
A Moose-based role that ena
ased on Algorithm::ConsistentHash::CHash
use Algorithm::ConsistentHash::CHash;
use JSON::XS qw(encode_json decode_json);
with 'ShardedKV::Continuum';
has '_orig_continuum_spec' => (
is => 'ro',
);
lose the logger!") if $logger;
encode_json( $self->_orig_continuum_spec )
}
sub deserialize {
my $class = shift;
return $class->new(from => decode_json( $_[1] ));
}
sub clone {
my $self = s