Go to file
denghao a81f4499c4 format patches 2022-10-08 10:18:12 +03:00
debian format patches 2022-10-08 10:18:12 +03:00
examples Import Upstream version 1.01 2022-10-08 10:18:11 +03:00
lib/MooseX/Types Import Upstream version 1.01 2022-10-08 10:18:11 +03:00
t Import Upstream version 1.01 2022-10-08 10:18:11 +03:00
xt Import Upstream version 1.01 2022-10-08 10:18:11 +03:00
Changes Import Upstream version 1.01 2022-10-08 10:18:11 +03:00
INSTALL Import Upstream version 1.01 2022-10-08 10:18:11 +03:00
LICENSE Import Upstream version 1.01 2022-10-08 10:18:11 +03:00
MANIFEST Import Upstream version 1.01 2022-10-08 10:18:11 +03:00
META.json Import Upstream version 1.01 2022-10-08 10:18:11 +03:00
META.yml Import Upstream version 1.01 2022-10-08 10:18:11 +03:00
Makefile.PL Import Upstream version 1.01 2022-10-08 10:18:11 +03:00
README Import Upstream version 1.01 2022-10-08 10:18:11 +03:00
author.yml Import Upstream version 1.01 2022-10-08 10:18:11 +03:00
dist.ini Import Upstream version 1.01 2022-10-08 10:18:11 +03:00
perlcriticrc Import Upstream version 1.01 2022-10-08 10:18:11 +03:00

README

NAME

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

VERSION

    version 1.01

SYNOPSIS

     package Foo;
     
     use Moose;
     use Moose::Util::TypeConstraints;
     use MooseX::Types::JSON qw( JSON relaxedJSON );
     
     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. All the heavy lifting in the background
    is also done by JSON.

    Coercions from Defined types are included.

      * JSON

      A Str that is valid JSON.

      * relaxedJSON

      A Str that is 'relaxed' JSON. For the meaning of 'relaxed' see JSON.

AUTHOR

    Author: Graham Ollis <plicease@cpan.org>

    Contributors:

    Steve Huff

COPYRIGHT AND LICENSE

    This software is copyright (c) 2014,2022 by Michael Langner.

    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.