Subject: | Missing allow_blessed, convert_blessed nor allow_tags settings for JASON |
Date: | Sat, 8 Jul 2017 15:10:25 -0700 |
To: | bug-Catalyst-View-JSON [...] rt.cpan.org |
From: | Brahmina <brahmina [...] brahminacreations.com> |
I encountered the error:
Caught exception in $CATALYSTAPP::View::JSON->process "encountered object
'$JSONCALLURL', but neither allow_blessed, convert_blessed nor allow_tags
settings are enabled (or TO_JSON/FREEZE method missing) at
/usr/share/perl5/Catalyst/View/JSON.pm line 48."
I was able to fix the error by changing line 46 of Catalyst::View::JSON to:
my %args = (utf8=>1, %{$self->json_encoder_args ||+{ allow_blessed => 1 }});
Not sure, but I'm guessing this error arose from the latest release
of JSON::XS, as this error wasn't an issue with similar Catalyst projects
I've had in the past.
Thanks!
Brahmina Burgess