>
> $self->renderer->add_handler(json => sub {
> my ($self, $c, $output, $data) = (@_);
> $$output = JSON::XS->new->encode($data->{json});
> });
>
Can be done, but doesn't work for all the other aspects of the framework
where Mojo::JSON is also used. (WebSockets for example)
Btw. Might be worth using Cpanel::JSON::XS to avoid problems with the
author of JSON::XS. https://metacpan.org/pod/Cpanel::JSON::XS
--
sebastian
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.