Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

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

Author

       Author: Graham Ollis <plicease@cpan.org>

       Contributors:

       Steve Huff

Name

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

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.

Version

       version 1.01

See Also