ove; }
package Padre::Plugin::Shopify::Project;
use parent 'Padre::Role::Task';
use JSON qw(decode_json encode_json);
use File::Slurp;
use WWW::Shopify;
use WWW::Shopify::Model::Shop;
use Padre::Plug
.shopmanifest") {
$self->manifest(decode_json(read_file($directory . "/.shopmanifest")));
}
else {
write_file($directory . "/.shopmanifest", encode_json($self->manifest));
}
$self->update_comb
{shop};
if (-e "$directory/.shopinfo") {
$self->{shop} = WWW::Shopify::Model::Shop->from_json(decode_json(read_file("$directory/.shopinfo")));
}
else {
# To remove unecessary code references an
r => 'Acme::VOYAGEGROUP::ConferenceRoom::Output::Color',
json => 'Acme::VOYAGEGROUP::ConferenceRoom::Output::JSON',
xml => 'Acme::VOYAGEGROUP::ConferenceRoom::Output::X
} elsif( $from eq '-' ) {
$file = \*STDIN;
} elsif( $from =~ /\.(xml|json)$/ ) {
$file = $from ;
$format = $1 unless $format;
}
}
i
push @objects, $object;
}
}
} elsif ( $format eq 'json' ) {
eval { $value = JSON->new->decode($from); };
croak $@ if $@;
if ( (keys %$value) ==
delete $value->{schema} if $root eq 'Response'; # ignore schema attribute
croak "JSON does not contain DAIA elements" unless $value;
push @objects, eval('DAIA::'.$root.'->new(
= 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 import {
m
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
nc..
#
# This is free software, licensed under:
#
# The MIT (X11) License
#
use JSON qw( decode_json encode_json );
use LWP::UserAgent;
use version 0.77;
use Moo;
has $_ => ( is => 'rw', require
=> $email, platform => $class->_platform };
return $class->new( un => undef, key => undef )->_json_from_post( 'https://plot.ly/apimkacct', $payload );
}
sub plot { shift->_call_wrap( @_ ) }
sub
key, $origin, %kwargs ) = @_;
my ( $json_args, $json_kwargs );
{
no warnings 'once';
my $required = 2.006;
local *PDL::TO_JSON = sub {
die "PDL version $re
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
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
"application/javascript" => q{js},
"application/json" => q{json},
"application/mathml+xml" => q{xml},
"appl
fined $self->{output_format} and $self->{output_format} eq 'json') {
*pack = *pack_json;
*pack_drainlog = *pack_drainlog_json;
}
srand (time ^ $PID ^ unpack("%L*", `ps axww |
{tag}, $event_stream]);
}
sub pack_json {
use JSON::XS qw/encode_json/;
my ($self,$packer,$fieldname,$lines) = @_;
my $t = time;
return encode_json([$self->{tag}, [map { [$t, {$fieldn
lines}]);
}
sub pack_drainlog_json {
use JSON::XS qw/encode_json/;
my ($self,$packer,$drain_log_tag,$drain_lines) = @_;
my $t = time;
return encode_json([$drain_log_tag, $t, {'drain'
e strict;
use warnings;
use base qw( SWISH::Prog::Aggregator );
use Carp;
use YAML::Syck ();
use JSON ();
use SWISH::Prog::Utils;
use Scalar::Util qw( blessed );
__PACKAGE__->mk_accessors(
s to Perl built-in
time().
=item serial_format
Which format to use in serialize(). Default is C<json>. You can also use C<yaml>.
If you don't like either of those, subclass SWISH::Prog::Aggregator::
l} ||= 'url';
$self->{modtime} ||= 'modtime';
$self->{serial_format} ||= 'json';
unless ( $self->{methods} ) {
croak "methods required";
}
# set up the co
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 import {
m
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
ion/x-gzip',
xls => 'application/vnd.ms-excel',
zip => 'application/zip',
json => 'application/json',
yml => 'application/x-yaml',
);
# prime the cache with some typical defaults
= 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 import {
m
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
A::Document>
our $VERSION = '0.43'; #VERSION
use strict;
use base 'DAIA::Object';
use DAIA;
use JSON;
our %PROPERTIES = (
id => $DAIA::Object::COMMON_PROPERTIES{id},
href =>
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
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
= $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
@_;
# 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