Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Validating a JSON structure

by remiah (Hermit)
on Sep 05, 2012 at 07:06 UTC ( #991748=note: print w/ replies, xml ) Need Help??


in reply to Validating a JSON structure

Maybe this will work.

my $json_model ={ type => 'object', properties => { year => {type=>'number', minimum=>0, maximum=>9999, required=>1 +}, month => {type=>'number', minimum=>1, maximum=>12, required=>1}, }, additionalProperties =>0 };
The author of this module is around here, Mr.Tobyink.


Comment on Re: Validating a JSON structure
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991748]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2015-07-04 07:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (58 votes), past polls