MooseX::Types::JSON(3pm)

MooseX::Types::JSON3pm

Json datatype for moose

Usage

 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

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0–7
  2. 8–10
  3. 11
  4. 12–13

Author

Author: Graham Ollis <[email protected]>

Contributors:

Steve Huff

From libmoosex-types-json-perl 1.01-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.