Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991748]
[ww]: ++ambrus "their browser died just when...."
[ambrus]: ww: or they accidentally closed the window, or something. the exact excuse doesn't matter.
[ambrus]: you hear that on web forums frequently.
LanX Fermat 's famous browser
[ww]: ambrus agree; got the t-shirt, et al

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (17)
As of 2017-03-23 18:18 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (293 votes). Check out past polls.