Russell

 

I reviewed the docs again, in case I was not looking properly. I expected the info to be here: https://metacpan.org/pod/Dancer2::Config

 

But this particular engine is not actually mentioned.

 

Z

 

From: dancer-users [mailto:dancer-users-bounces@dancer.pm] On Behalf Of Russell Jenkins
Sent: 30 March 2015 13:29
To: dancer-users@dancer.pm
Subject: Re: [dancer-users] serializer config

 

Hey Zahir and Naveed.

The keys of the engines hash needs to be one of the support D2 engines (session, logger, serializer, template).

i.e. that sample config should be:

engines:
  serializer:
    JSON:
      convert_blessed: 1

I'm sure that structure was documented.. if its not (or its too hard to find) feel free to raise an issue in the github repo. Documentation patches are always more than welcome!

Hope that helps,
  Russell (veryrusty) Jenkins.

On 30/03/2015 5:19 pm, Naveed Massjouni wrote:

Just update your config.yml like so:

 

    engines:

      JSON:

        convert_blessed: 1

 

-Naveed Massjouni