1MooseX::Types::JSON(3)User Contributed Perl DocumentationMooseX::Types::JSON(3)
2
3
4

NAME

6       MooseX::Types::JSON - JSON datatype for Moose
7

SYNOPSIS

9        package Foo;
10
11        use Moose;
12        use Moose::Util::TypeConstraints;
13        use MooseX::Types::JSON qw( JSON );
14
15        has config  => ( is => 'rw', isa => JSON        );
16        has options => ( is => 'rw', isa => relaxedJSON );
17
18       String type constraints that match valid and relaxed JSON. For the
19       meaning of 'relaxed' see JSON::XS. All the heavy lifting in the
20       background is also done by JSON::XS.
21
22       ·   JSON
23
24           A Str that is valid JSON.
25
26       ·   relaxedJSON
27
28           A Str that is 'relaxed' JSON. For the meaning of 'relaxed' see
29           JSON::XS.
30

AUTHOR

32       Michael Langner, "<mila at cpan.org>"
33

BUGS

35       Please report any bugs or feature requests to "bug-moosex-types-json at
36       rt.cpan.org", or through the web interface at
37       http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooseX-Types-JSON
38       <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooseX-Types-JSON>.  I
39       will be notified, and then you'll automatically be notified of progress
40       on your bug as I make changes.
41
43       Copyright 2009 Michael Langner, all rights reserved.
44
45       This program is free software; you can redistribute it and/or modify it
46       under the same terms as Perl itself.
47
48
49
50perl v5.12.0                      2009-10-25            MooseX::Types::JSON(3)
Impressum