report errors.
=item L<Convert::Moji>
This is used for most of the work of the module.
=item L<JSON::Parse>
This is used to read in some of the data.
=back
=head1 ACKNOWLEDGEMENTS
Thanks to Nao
$ref: '#/components/headers/warning'
content:
application/hal+json:
schema:
$ref: '#/components/schemas/Resultaat'
"400":
on/hal+json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Geen of onjuiste apikey aangeleverd
content:
application/hal+json:
:
description: Niet geautoriseerd voor deze operatie
content:
application/hal+json:
schema:
$ref: '#/components/schemas/Error'
NotFound:
description
report errors.
=item L<Convert::Moji>
This is used for most of the work of the module.
=item L<JSON::Parse>
This is used to read in some of the data.
=back
=head1 ACKNOWLEDGEMENTS
Thanks to Nao
ssage key (valid JSON-string)
my $key_schema = <<KEY_SCHEMA;
{
"type": "long",
"name": "_id"
}
KEY_SCHEMA
# Set Avro schema for message value (payload) (valid JSON-string)
my $va
and extends L<Kafka::Producer|Kafka::Producer>.
=cut
use 5.010;
use strict;
use warnings;
use JSON::XS;
use base 'Kafka::Producer';
use Avro::BinaryEncoder;
use Avro::Schema;
use Confluent::Sche
CHEMA => $supplied_schema
);
$self->_set_error('Error adding schema to registry: ' . encode_json($sr->get_error())) &&
return undef
unless $schema_id;
# ...and bless new schema i
22030' => 'duplicate_json_object_key_value',
'22031' => 'invalid_argument_for_sql_json_datetime_function',
'22032' => 'invalid_json_text',
'22033' => 'invalid_sql_json_subscript',
'220
han_one_sql_json_item',
'22035' => 'no_sql_json_item',
'22036' => 'non_numeric_sql_json_item',
'22037' => 'non_unique_keys_in_a_json_object',
'22038' => 'singleton_sql_json_item_requir
=> 'sql_json_array_not_found',
'2203A' => 'sql_json_member_not_found',
'2203B' => 'sql_json_number_not_found',
'2203C' => 'sql_json_object_not_found',
'2203D' => 'too_many_json_array_e
nd mazes, and create
animations of cell values and backgrounds via jQuery. Transform Excel, HTML,
JSON, CSV, YAML, PNG, JPEG and GIF files instantly into HTML tables.
=head1 CLI TOOLS
=over 4
=item
ing. The name of the data file to read. Supported formats
are XLS, CSV, JSON, YAML, HTML, GIF, PNG and JPG.
file => 'foo.json'
C<file> overrides C<data>. You generally either specify C<data>
or C<
e created on your behalf, you can
also supply a URI:
file => 'http://your.site.com/path/to/foo.json'
The temp file will be unlinked unless you set the super secret hidden
param C<_unlink> to zero
e Spreadsheet::HTML::Presets::Handson;
use strict;
use warnings FATAL => 'all';
eval "use JSON";
our $NO_JSON = $@;
sub handson {
my ($self,$data,$args);
$self = shift if ref($_[0]) =~ /^Spr
;
$args->{json} = '';
if ($NO_JSON) {
$args->{json} = '{' . join( ', ', map "$_: $args->{args}{$_}", keys %{ $args->{args} } ) . '}';
} else {
my $json = JSON->new->allow_n
onref;
$args->{json} = $json->encode( $args->{args} );
$args->{json} =~ s/"//g;
}
$args->{id} ||= 'handsontable';
my @args = (
@_,
empty => undef,
;
}
unless (ref $args->{map}) {
$args->{data} = [[ 'Error' ],[ 'map is not valid JSON' ]];
return $self ? $self->generate( %$args ) : Spreadsheet::HTML::generate( %$args );
p => '/path/to/mappings.json',
);
# or
use Spreadsheet::HTML qw( beadwork );
print beadwork(
art => '/path/to/ascii-art.txt',
map => '/path/to/mappings.json',
);
=head1 METHODS
of ASCII art.
beadwork(
art => '/path/to/ascii-art.txt',
map => '/path/to/mappings.json',
bgcolor => 'gray',
)
C<art> contains the ASCII picture and C<map> contains the color
f
port';
use HTTP::Tiny qw( );
use HTTP::Tiny::Multipart qw( );
use JSON::MaybeXS qw( );
use MooX::Types::MooseLike::Base qw( ArrayRef Enum Str);
{
'lazy',
builder => sub { HTTP::Tiny->new(verify_SSL => 1) },
);
has json => (
is => 'lazy',
builder => sub { JSON::MaybeXS->new },
);
# https://documentation.mailgun.com/en/latest/api-s
f->success($response);
}
sub success {
my ($self, $response) = @_;
my $content = $self->json->decode($response->{content});
return Email::Sender::Success::MailgunSuccess->new(id => $cont
::Plugin::Map::Tube::API - API for Map::Tube.
=head1 VERSION
Version 0.04
=cut
use 5.006;
use JSON;
use Data::Dumper;
use IO::Socket::INET;
use Cache::Memcached::Fast;
use Time::HiRes qw(gettimeof
te($start, $end);
my $stations = [ map { sprintf("%s", $_) } @{$route->nodes} ];
return _jsonified_content($stations);
};
=head2 line_stations($client_ip, $line)
Returns the list of station
LID_LINE_NAME,
} if ($@);
my $stations = $object->get_stations($line_name);
return _jsonified_content([ map { sprintf("%s", $_) } @{$stations} ]);
};
=head2 map_stations($client_ip)
Re
oo::Bar
Foo::Bar=arg1,arg2
See also: C<perl::modname>.
A two-element array from (coercible from JSON string) is also allowed:
["Foo::Bar", \@args]
=item * L<perl::modname_with_optional_ver|Sah::
T INSTALLED
=back
=cut
hook before => sub {
response_header 'Content-Type' => 'application/json';
};
=head1 ROUTES
=head2 GET /map-tube/v1/shortest-route/:map/:start/:end
Return the shortest
C<$start> to C<$end> in the C<$map>.
Returns ref to an array of shortest route stations list in JSON format.
For example:
curl http://127.0.0.1:5000/map-tube/v1/shortest-route/london/baker%20s
t};
};
=head2 GET /map-tube/v1/stations/:map/:line
Returns ref to an array of stations list in JSON format for the given C<map> and
C<line>. The C<map> can be any of the supported maps. And the C<
pletion' => 'perl_modname',
examples => \@examples_str,
}];
our $schema_array = [array_from_json => {
summary => 'A 1- or 2-element array containing Perl module name (e.g. ["Foo::Bar"]) with
::Bar
Foo::Bar=arg1,arg2
See also: `perl::modname`.
A two-element array from (coercible from JSON string) is also allowed:
["Foo::Bar", \@args]
_
of => [
$schema_array,
invalid data
$data = "";
my $errmsg = $validator->($data); # => "String is not a valid JSON: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 at (eva
ach(sub {
my $hashref = $_[0];
# ...
});
To convert BagIt directories into a JSON representation with the L<catmandu> command line client:
# Use a glob to find all directorie
r\n Foo::Bar=arg1,arg2\n\nSee also: `perl::modname`.\nA two-element array from (coercible from JSON string) is also allowed:\n\n [\"Foo::Bar\", \\\@args]\n\n",examples=>[{valid=>0,value=>""},{va
"]]},{summary=>"Too many elements",valid=>0,value=>["Foo",["arg1","arg2"],{}]}],of=>[["array_from_json",{description=>"\nThese are valid values for this schema:\n\n [\"Foo\"]
r\n Foo::Bar=arg1,arg2\n\nSee also: `perl::modname`.\nA two-element array from (coercible from JSON string) is also allowed:\n\n [\"Foo::Bar\", \\\@args]\n\n",examples=>[{valid=>0,value=>""},{va
"]]},{summary=>"Too many elements",valid=>0,value=>["Foo",["arg1","arg2"],{}]}],of=>[["array_from_json",{description=>"\nThese are valid values for this schema:\n\n [\"Foo\"]
e or directory in Amazon Simple Storage
Service (Amazon S3).
=head2 DataRearrangement => Str
A JSON string that represents the splitting and rearrangement
requirement used when this C<DataSource> w
d C<ClusterIdentifier> for an Amazon
Redshift C<DataSource>.
=head2 DataRearrangement => Str
A JSON string that represents the splitting and rearrangement
processing to be applied to a C<DataSource
"="s3://my_s3_path/bucket/file.csv", "complement":"true"}}>
=back
=head2 DataSchema => Str
A JSON string that represents the schema for an Amazon Redshift
C<DataSource>. The C<DataSchema> defines
Storage Service
(Amazon S3) that is used by a C<DataSource>.
=head2 DataRearrangement => Str
A JSON string that represents the splitting and rearrangement
requirement used when this C<DataSource> w
_name { 'dms' }
sub version { '2016-01-01' }
sub target_prefix { 'AmazonDMSv20160101' }
sub json_version { "1.1" }
has max_attempts => (is => 'ro', isa => 'Int', default => 5);
has retry =>
with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::JsonCaller';
sub AddTagsToResource {
my $self = shift;
my $call_object = $self->new_with