1MooseX::Types::JSON(3)User Contributed Perl DocumentationMooseX::Types::JSON(3)
2
3
4
6 MooseX::Types::JSON - JSON datatype for Moose
7
9 version 1.01
10
12 package Foo;
13
14 use Moose;
15 use Moose::Util::TypeConstraints;
16 use MooseX::Types::JSON qw( JSON relaxedJSON );
17
18 has config => ( is => 'rw', isa => JSON );
19 has options => ( is => 'rw', isa => relaxedJSON );
20
21 String type constraints that match valid and relaxed JSON. For the
22 meaning of 'relaxed' see JSON. All the heavy lifting in the background
23 is also done by JSON.
24
25 Coercions from Defined types are included.
26
27 • JSON
28
29 A Str that is valid JSON.
30
31 • relaxedJSON
32
33 A Str that is 'relaxed' JSON. For the meaning of 'relaxed' see
34 JSON.
35
37 Author: Graham Ollis <plicease@cpan.org>
38
39 Contributors:
40
41 Steve Huff
42
44 This software is copyright (c) 2014,2022 by Michael Langner.
45
46 This is free software; you can redistribute it and/or modify it under
47 the same terms as the Perl 5 programming language system itself.
48
49
50
51perl v5.38.0 2023-07-21 MooseX::Types::JSON(3)