Skip to content

uperl/MooseX-Types-JSON

Repository files navigation

MooseX::Types::JSON static linux

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.

AUTHOR

Author: Graham Ollis plicease@cpan.org

Contributors:

Steve Huff

COPYRIGHT AND LICENSE

This software is copyright (c) 2014-2024 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages