JSON::Validator::Error - JSON::Validator error object
use JSON::Validator::Error; my $err = JSON::Validator::Error->new($path, $message);
JSON::Validator::Error is a class representing validation errors from JSON::Validator.
$str = $self->message;
A human readable description of the error. Defaults to empty string.
$str = $self->path;
A JSON pointer to where the error occurred. Defaults to "/".
$self = JSON::Validator::Error->new($path, $message);
Object constructor.
JSON::Validator.
To install JSON::Validator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JSON::Validator
CPAN shell
perl -MCPAN -e shell install JSON::Validator
For more information on module installation, please visit the detailed CPAN module installation guide.