5
Haml 3
Hamlet 3
JSON 2
JSP 2
Javadoc
Script::Duktape::XS;
use Data::JSONSchema::Ajv::src;
use Data::JSONSchema::Ajv::src::04;
use Data::JSONSchema::Ajv::src::06;
=head1 NAME
Data::JSONSchema::Ajv - JSON Schema Validator wrapping Ajv
=head1 VERSION
version 0.09
=head1 DESCRIPTION
JSON Schema Validator wrapping Ajv
=head1 SYNOPSIS
use Test::More;
use Data::JSONSchema::Ajv;
my $ajv_options = {};
my $my_options
to '07'
};
my $ajv = Data::JSONSchema::Ajv->new($ajv_options, $my_options);
my $validator = $ajv->make_validator(
{ # http://json-schema.org/examples.html
tit
n( q<>, $hdr, map { encode($_, $_[1]) } %$_ );
}
}
elsif (ref()->isa('JSON::PP::Boolean')) {
return $_ ? "\xf5" : "\xf4";
}
elsif (ref()->isa('C
package Data::Clean::FromJSON;
our $DATE = '2019-11-26'; # DATE
our $VERSION = '0.395'; # VERSION
use 5.010001;
use strict;
use warnings;
use parent qw(Data::Clean);
use vars qw($creating_singleton
"You probably want to call get_cleanser() yet to get a singleton instead?";
}
$opts{"JSON::PP::Boolean"} //= ['deref_scalar_one_or_zero'];
$class->SUPER::new(%opts);
}
sub get_clean
from JSON decoder
__END__
=pod
=encoding UTF-8
=head1 NAME
Data::Clean::FromJSON - Clean data from JSON decoder
=head1 VERSION
This document describes version 0.395 of Data::Clean::FromJSON (fr
ref $obj eq '') ? 1 : 0; # really?
}
sub is_number {
my ($self, $obj) = @_;
# avoid from JSON::Boolean treated as number.
(defined $obj && ref $obj eq '' && looks_like_number($obj)) ? 1 :
ub is_boolean {
my ($self, $obj) = @_;
return $self->{options}->{use_json_boolean}
? $self->is_boolean_json($obj)
: $self->is_boolean_perl($obj)
}
sub is_boolean_perl { # 1 or
s_like_number($obj) && ($obj == 1 || $obj == 0)) ? 1 : 0; # TODO invalidate 0.0
}
sub is_boolean_json {
my ($self, $obj) = @_;
return 1 if defined $obj && Types::Serialiser::is_bool($obj);
_schema;
};
}
1;
__END__
=encoding utf-8
=head1 NAME
Valiemon - data validator based on json schema
=head1 SYNOPSIS
use Valiemon;
# create instance with schema definition
my $
r(3)>
=item L<Data::Dumper(3)>
=item L<Data::Taxi(3)>
=item L<FreezeThaw(3)>
=item L<JSON(3)>
=item L<JSON::Syck(3)>
=item L<PHP::Serialization(3)>
=item L<Storable(3)>
=item L<XML::Dumper(3)>
package Data::JSONSchema::Ajv::src;
$Data::JSONSchema::Ajv::src::VERSION = '0.09';
our $src = join '', (<DATA>);
=head1 NAME
Data::JSONSchema::Ajv::src
=head1 VERSION
version 0.09
=head1 WHAT
Th
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
=cut
__DATA__
/* ajv 6.8.1: Another JSON Schema Validator */
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.e
-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:h,"json-pointer":d,"json-pointer-uri-fragment":f,"relative-json-pointer":p},m.full={date:v,time:g,"date-time":function(e){var r=e.spl
r(3)>
=item L<Data::Dumper(3)>
=item L<Data::Taxi(3)>
=item L<FreezeThaw(3)>
=item L<JSON(3)>
=item L<JSON::Syck(3)>
=item L<PHP::Serialization(3)>
=item L<Storable(3)>
=item L<XML::Dumper(3)>
r(3)>
=item L<Data::Dumper(3)>
=item L<Data::Taxi(3)>
=item L<FreezeThaw(3)>
=item L<JSON(3)>
=item L<JSON::Syck(3)>
=item L<PHP::Serialization(3)>
=item L<Storable(3)>
=item L<XML::Dumper(3)>
package Data::Clean::ForJSON;
our $DATE = '2019-11-26'; # DATE
our $VERSION = '0.395'; # VERSION
use 5.010001;
use strict;
use warnings;
use parent qw(Data::Clean);
use vars qw($creating_singleton)
Exporter qw(import);
our @EXPORT_OK = qw(
clean_json_in_place
clone_and_clean_json
);
sub new {
my ($class, %opts) = @_;
if (!%o
ingleton = $class->new;
$singleton;
}
sub clean_json_in_place {
__PACKAGE__->get_cleanser->clean_in_place(@_);
}
sub clone_and_clean_json {
__PACKAGE__->get_cleanser->clone_and_clean(@_)
package Data::JSONSchema::Ajv::src::04;
$Data::JSONSchema::Ajv::src::04::VERSION = '0.09';
our $src = join '', (<DATA>);
=head1 NAME
Data::JSONSchema::Ajv::src::04
=head1 VERSION
version 0.09
=he
ezkin/ajv/blob/master/lib/refs/json-schema-draft-04.json
on 2018-05-29
=cut
__DATA__
{
"id": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",
nd/or pv to decide if a scalar is a number. JSON::XS
does this and without this flag you have to add 0 to all bound column
data returning numbers to get JSON::XS to encode it is N instead of
"N".
NOT
gs to
L<http://rt.cpan.org/Dist/Display.html?Queue=JSON-MultiValueOrdered>.
=head1 SEE ALSO
L<JSON::Tiny::Subclassable>,
L<JSON::Tiny>,
L<Mojo::JSON>.
=head1 AUTHOR
Toby Inkster E<lt>tobyink@cpan.
teanX::Parser::JSONLD - JSONLD Parser
=head1 VERSION
This document describes AtteanX::Parser::JSONLD version 0.001
=head1 SYNOPSIS
use Attean;
my $parser = Attean->get_parser('JSONLD')->new();
$parser->parse_cb_from_io( $fh );
=head1 DESCRIPTION
This module implements a JSON-LD 1.11 RDF parser for L<Attean>.
=head1 ROLES
This class consumes the following roles:
=over 4
=item * L<Attea
er 4
=cut
package AtteanX::Parser::JSONLD::Handler {
use v5.18;
use autodie;
use Moo;
use Attean::RDF;
use Encode qw(decode_utf8 encode_utf8);
extends 'JSONLD';
use namespace::clean;
sub d
et(
'https://graph.facebook.com/v4.0/me' # Facebook API URL
);
print $info->as_json;
=head1 DESCRIPTION
Net::Facebook::Oauth2 gives you a way to simply access FaceBook Oauth 2.0 p
package Data::JSONSchema::Ajv::src::06;
$Data::JSONSchema::Ajv::src::06::VERSION = '0.09';
our $src = join '', (<DATA>);
=head1 NAME
Data::JSONSchema::Ajv::src::05
=head1 VERSION
version 0.09
=he
ezkin/ajv/blob/master/lib/refs/json-schema-draft-06.json
on 2018-05-29
=cut
__DATA__
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "http://json-schema.org/draft-06/schema#",
t::Facebook::Oauth2;
use strict;
use warnings;
use LWP::UserAgent;
use URI;
use URI::Escape;
use JSON::MaybeXS;
use Carp;
our $VERSION = '0.12';
sub new {
my ($class,%options) = @_;
my $sel
y $response = $self->{browser}->get($getURL);
my $json = decode_json($response->content());
if (!$response->is_success || exists $json->{error}){
##got an error response from face
book. die and display error message
croak "'" . $json->{error}->{type}. "'" . " " .$json->{error}->{message};
}
elsif ($json->{access_token}) {
##everything is ok proccess resp
ver::Report::BitBucketServer;
use strict;
use warnings;
use Path::Tiny qw(path);
use JSON::MaybeXS qw(encode_json);
our $VERSION = '0.3';
sub report {
my ( $pkg, $db, $options ) = @_;
my $
tr";
push @cfiles, \%fdata;
}
my $json = encode_json( { files => \@cfiles } );
path('cover_db/bitbucket_server.json')->spew($json);
}
1;
__END__
=pod
=head1 NAME
Devel::Cove
head1 SYNOPSIS
> cover -report BitBucketServer
=head1 DESCRIPTION
This module generates an JSON file suitable for import into Bitbucket Server from an existing
Devel::Cover database.
It is des
s;
use File::ShareDir qw[dist_dir];
use File::Spec::Functions qw[catdir canonpath];
use JSON::Tiny qw[decode_json];
use File::Slurp qw[read_file];
use lib '../../blib/lib', '../blib/lib', 'blib/lib',
- overrides are unsupported
return
bless decode_json(
read_file( canonpath( catdir( dist_dir('Alien-FLTK'), 'config.json' ) ) ) ), shift;
}
sub include_dirs {
my ($self) = @_;
n
CORE
Perl (v5.28.1, linux)
Mojolicious (8.17, Supervillain)
OPTIONAL
Cpanel::JSON::XS 4.04+ (4.09)
EV 4.0+ (4.25)
IO::Socket::Socks 0.64+ (n/a)
IO::Socke