MooseX::Types::JSON is a Moose extension that provides type constraints that validate strings in the JavaScript Object Notation (JSON) format. It can use either the JSON or relaxed JSON specifications and depends on JSON::XS to do the heavy lifting (see libjson-xs-perl for details).