Section: User Contributed Perl Documentation (3)
MooseX::Types::JSON - JSON datatype for Moose
package Foo; use Moose; use Moose::Util::TypeConstraints; use MooseX::Types::JSON qw( JSON ); has config => ( is => 'rw', isa => JSON ); has options => ( is => 'rw', isa => relaxedJSON );
String type constraints that match valid and relaxed JSON. For the meaning of'relaxed' see JSON::XS. All the heavy lifting in the background is alsodone by JSON::XS.
A Str that is valid JSON.
A Str that is 'relaxed' JSON. For the meaning of 'relaxed' see JSON::XS.
Michael Langner, "<mila at cpan.org>"
Please report any bugs or feature requests to"bug-moosex-types-json at rt.cpan.org"
,or through the web interface at<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooseX-Types-JSON
>.I will be notified, and then you'll automatically be notified of progress onyour bug as I make changes.
COPYRIGHT & LICENSE
Copyright 2009 Michael Langner, all rights reserved.
This program is free software; you can redistribute it and/or modify it under thesame terms as Perl itself.
- COPYRIGHT & LICENSE
This document was created byman2html,using the manual pages.