I don't use the serializers closely, but maybe your Javascript didn't send the correct MIME Content-Type headers so Dancer did not autodecode the content?
Personally, I would do the decoding and validating directly in Perl instead of hoping for the (runtime) setting of serializer being the correct one. Note that there is no distinction between input and output serialization, so if you switch the serializer to CGI (or whatever the "other" setting is) anywhere else in your program, it might be in the wrong state when you receive that input.
In reply to Re: perl dancer route recive array of json via xmlhttp request
by Corion
in thread perl dancer route recive array of json via xmlhttp request
by RamiD
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |