The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

NAME

ThaiSchema::JSON - ThaiSchema meets JSON

SYNOPSIS

my $schema = type_array();
my $j = ThaiSchema::JSON->new();
my ($ok, $errors) = $j->validate('[]', $schema);
print $ok ? "ok\n" : "not ok\n";
for (@$errors) {
print "$_\n";
}

DESCRIPTION

This module validates JSON string with ThaiSchema's schema object.

THANKS TO

This module is based on JSON::Tiny's code. Thanks to David Oswald. And JSON::Tiny is based on Mojo::JSON. Thanks to Mojolicious development team.