[Catalyst] Requirement to add for C::A::Serialize::JSON to not give Content-Type application/json is not supported
jjn1056 at yahoo.com
Fri Dec 26 23:12:43 GMT 2014
For better or worse this distribution expects the user of it to add dependencies for the types they want to handle. Otherwise we'd end up making people install dependencies for types they might not want. It would make a good note in the docs somewhere (unless they are already around... I just could not find them).
FWIW if you are just doing basic JSON POST/GET stuff you might be interested to know that newer Catalyst supports that out of the box. I find the build in stuff + Catalyst::View::JSON is enough for the basic JSON API needs I tend to have. SO unless you need all the power of the REST package you might want to skip it.
On Friday, December 26, 2014 12:48 PM, Octavian Rasnita <orasnita at gmail.com> wrote:
Hello and... Marry Christmas!
I tried to use Catalyst::Controller::REST, but it returned the error
"Content-Type application/json is not supported.".
I've seen that somehow I had the module Catalyst::Action::Serialize::JSON
installed, so it should have been working.
I checked its source code and I've seen that it uses the module
JSON::MaybeXS, but I didn't have that module.
I installed it and now it works fine.
This is just a note that may be helpful for others that may have this
Also maybe JSON::MaybeXS will be added as a requirement for
List: Catalyst at lists.scsys.co.uk
Searchable archive: http://firstname.lastname@example.org/
Dev site: http://dev.catalyst.perl.org/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Catalyst