JSON::Schema::Generator - Generate JSON schema from data
use JSON::Schema::Generator; my $generator = JSON::Schema::Generator->new; $generator->learn({ id => 1, name => 'yuno' }); $generator->learn({ id => 2, name => 'miyako' }); $generator->learn({ id => 3, name => 'sae' }); my $schema = $generator->generate;
JSON::Schema::Generator generate a JSON schema from actual data.
It supports:
* type inference (using L<JSON::TypeInference>) * embedding example values
Copyright (C) aereal.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
aereal <aereal@aereal.org>
To install JSON::Schema::Generator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JSON::Schema::Generator
CPAN shell
perl -MCPAN -e shell install JSON::Schema::Generator
For more information on module installation, please visit the detailed CPAN module installation guide.