$self->save_env;
}
=head2 workflow_load
use Config::Any to load configuration files - yaml, json, etc
=cut
sub workflow_load {
my $self = shift;
my $cfg = Config::Any->load_files(
e strict;
use warnings;
use feature ':5.10';
use base qw{ Tie::Handle Exporter };
use Symbol;
use JSON;
use Errno qw{ ENOENT EISDIR EINVAL EPERM EACCES EAGAIN ECANCELED EFBIG };
use Fcntl qw{ SEEK_CUR
sponse->code != 200;
$self->{'meta'} = from_json($response->content())
if $self->{'closed'};
unless ($self->{'upload_id'}) {
$response = from_json($response->content());
$self->{'upload_id'}
eaders__);
my $code = $response->code();
if ($code == 200) {
$meta = $self->{'meta'} = from_json($response->content());
# XXX: Dropbox returns metadata for recently deleted files
if ($meta-
y expects:
# http://sentry.readthedocs.org/en/latest/developer/client/index.html#building-the-json-packet
my $sentry_message = length($params{message}) > 1000 ? substr($params{message}, 0 , 1
use DateTime;
use Data::Dumper;
use List::Util qw(shuffle);
use List::MoreUtils qw(firstidx);
use JSON;
use Moose;
use namespace::autoclean;
extends 'HPC::Runner';
with 'MooseX::SimpleConfig';
# For
atchname};
my $json = JSON->new->allow_nonref;
my $json_text = $json->encode( $batch );
$DB::single=2;
$json_text = " --metastr \'$json_text\'";
return $json_text;
}
sub creat
sename qw'dirname';
use File::Spec;
use File::Copy;
use Rex::Repositorio::Repository_Factory;
use JSON::XS;
use Data::Dumper;
our $VERSION = '1.2.1'; # VERSION
if ( !$Rex::Repositorio::VERSION ) {
);
require Mojolicious::Commands;
# pass config to mojo app
$ENV{'REPO_CONFIG'} = encode_json( $self->config );
$ENV{'REPO_NAME'} = $option{repo};
$ENV{'MOJO_MAX_MESSAGE_SIZE'} = 1024 *
:
package Rex::Repositorio::Server::Docker::Helper::Auth::Plain;
use Moose;
use File::Spec;
use JSON::XS;
require IO::All;
our $VERSION = '1.2.1'; # VERSION
has user_path => ( is => 'ro' );
sub l
);
my $user_file = File::Spec->catfile( $user_dir, "user.json" );
if ( !-f $user_file ) {
return 0;
}
my $user_ref = decode_json( IO::All->new($user_file)->slurp );
if ( $user_ref->{p
tence object
use JSON;
use Ubic::Lockf;
use Ubic::AtomicFile;
{
# support the compatibility with JSON.pm v1 just because we can
# see also: Ubic::ServiceLoader::Ext::json
no strict;
sub jsonToObj; *jsonToObj = (*{JSON::from_json}{CODE}) ? \&JSON::from_json : \&JSON::jsonToObj;
sub objToJson; *objToJson = (*{JSON::to_json}{CODE}) ? \&JSON::to_json : \&JSON::objToJson;
}
my
+)};
$data = { status => $status, enabled => $enabled };
}
else {
$data = jsonToObj($str);
}
return $data;
}
sub load {
my ($class, $fname) = @_;
return _load
be closer to verbatim.
=item * L<fast-matrix tail-log-to-json|https://github.com/eserte/cpan-testers-matrix/blob/master/bin/tail-log-to-json.pl>
C<CPAN::Testers::TailLog> contains similar logic to
' => 'text/plain' } => join("\n", @urls));
if (my $res = $tx->success) {
return $res->json;
} else {
my $err = $tx->error;
croak "$err->{code} response: $err->{message}
stall Bundle::Interchange'>
=head1 CONTENTS
Digest::MD5
Digest::SHA
MIME::Base64
MIME::Lite
JSON
URI::URL
HTML::Tagset
HTML::Entities
LWP
LWP::Protocol::https
Parse::RecDescent
OLE::Stora
nt(
join "/", __PACKAGE__, $OAuth::Lite2::VERSION);
}
# $self->{format} ||= 'json';
$self->{response_parser} = OAuth::Lite2::Client::TokenResponseParser->new;
return $sel
est) = @_;
# from draft-v8, format is specified to JSON only.
my $format = "json";
# my $format = $request->param("format") || "json";
my $formatter = OAuth::Lite2::Formatters->get_fo
rmatter_by_name($format)
|| OAuth::Lite2::Formatters->get_formatter_by_name("json");
my $res = try {
my $type = $request->param("grant_type")
or OAuth::Lite2::Server:
nt(
join "/", __PACKAGE__, $OAuth::Lite2::VERSION);
}
# $self->{format} ||= 'json';
$self->{response_parser} = OAuth::Lite2::Client::TokenResponseParser->new;
return $sel
When this is stored in a file, most serialization formats (JSON included) don't
save the code in C<completion>. If you use L<Data::Clean::JSON>, by default the
coderef will be replaced with plain stri
head1 SEE ALSO
L<OAuth::Lite2::Formatter>
L<OAuth::Lite2::Formatters>
L<OAuth::Lite2::Formatter::JSON>
L<OAuth::Lite2::Formatter::FormURLEncoded>
=head1 AUTHOR
Lyo Kato, E<lt>lyo.kato@gmail.comE<gt
nt(
join "/", __PACKAGE__, $OAuth::Lite2::VERSION);
}
# $self->{format} ||= 'json';
$self->{response_parser} = OAuth::Lite2::Client::TokenResponseParser->new;
return $sel
trict;
use warnings FATAL => 'all';
use Data::Dumper;
use Storable;
use POE qw( Wheel::Run );
use JSON;
use parent 'App::MultiModule::Task';
=head1 NAME
App::MultiModule::Tasks::Runner - Run extern
nner_return_type};
die 'run_program: runner_return_type must be one of "json", "gather"'
if $return_type ne 'json' and $return_type ne 'gather';
if($return_type eq 'gather') {
} elsif($return_type eq 'json') {
$message->{runner_stdout} .= "$stdout_line\n";
my $emit = eval {
return decode_json $message->{runner_stdout};
head1 SEE ALSO
L<OAuth::Lite2::Formatter>
L<OAuth::Lite2::Formatters>
L<OAuth::Lite2::Formatter::JSON>
L<OAuth::Lite2::Formatter::XML>
=head1 AUTHOR
Lyo Kato, E<lt>lyo.kato@gmail.comE<gt>
=head1 C
>new(
network => $self->network,
hash => $response->{headers}->{hash},
json => $response->{content},
secret => $self->secret,
);
}
=head2 sandbox_data
Indi
package Backblaze::B2::v1::AnyEvent;
use strict;
use JSON::XS;
use MIME::Base64;
use URI::QueryParam;
use Carp qw(croak);
use Promises
backend => ['AnyEvent'], 'deferred';
use AnyEvent;
use AnyEv
binmode $fh;
local $/;
my $json = <$fh>;
my $cred = decode_json( $json );
$self->{credentials} = $cred;
$cred
};
sub decode_json_response {
my($self, $body,$hdr)
code_json( $body ); };
if( my $err = $@ ) {
$self->log_message(4, sprintf "Error decoding JSON response body: %s", $err);
@result = (0, sprintf("Error decoding JSON res