X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FController%2FREST.pm;h=87bb7aaca4bad28f4984b76b1cb8751d0943a361;hb=46ca391e3e28fb0a6d178503c3ea8d56d57b0f44;hp=4c017d8f5ac9f33a5a250f97f6611805376922f9;hpb=ab8ab47a739539677817d6a7493b888c7a7815f6;p=catagits%2FCatalyst-Action-Serialize-Data-Serializer.git diff --git a/lib/Catalyst/Controller/REST.pm b/lib/Catalyst/Controller/REST.pm index 4c017d8..87bb7aa 100644 --- a/lib/Catalyst/Controller/REST.pm +++ b/lib/Catalyst/Controller/REST.pm @@ -2,7 +2,7 @@ package Catalyst::Controller::REST; use Moose; use namespace::autoclean; -our $VERSION = '0.85'; +our $VERSION = '0.87'; $VERSION = eval $VERSION; =head1 NAME @@ -146,6 +146,12 @@ Uses L to generate JSON output. It is strongly advised to also have L installed. The C content type is supported but is deprecated and you will receive warnings in your log. +You can also add a hash in your controller config to pass options to the json object. +For instance, to relax permissions when deserializing input, add: + __PACKAGE__->config( + json_options => { relaxed => 1 } + ) + =item * C => C If a callback=? parameter is passed, this returns javascript in the form of: $callback($serializedJSON);