Hi The only info I can find on serializer configs for JSON in the yaml file, relates to the serializer: JSON. How does one configure the engine to enable allow_blessed from within the central config? Z
Just update your config.yml like so: engines: JSON: convert_blessed: 1 -Naveed Massjouni On Sun, Mar 29, 2015 at 6:18 PM, Zahir Lalani < ZahirLalani@oliver-marketing.com> wrote:
Hi
The only info I can find on serializer configs for JSON in the yaml file, relates to the serializer: JSON.
How does one configure the engine to enable allow_blessed from within the central config?
Z
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
I am sure I tried that and it complained. Will try again and let you know Z From: dancer-users [mailto:dancer-users-bounces@dancer.pm] On Behalf Of Naveed Massjouni Sent: 30 March 2015 07:19 To: Perl Dancer users mailing list Subject: Re: [dancer-users] serializer config Just update your config.yml like so: engines: JSON: convert_blessed: 1 -Naveed Massjouni On Sun, Mar 29, 2015 at 6:18 PM, Zahir Lalani <ZahirLalani@oliver-marketing.com<mailto:ZahirLalani@oliver-marketing.com>> wrote: Hi The only info I can find on serializer configs for JSON in the yaml file, relates to the serializer: JSON. How does one configure the engine to enable allow_blessed from within the central config? Z _______________________________________________ dancer-users mailing list dancer-users@dancer.pm<mailto:dancer-users@dancer.pm> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
Same as yesterday Error while loading /home/systemz/Dev/OMG-API/bin/app.psgi: Engine 'JSON' is not supported. Z From: dancer-users [mailto:dancer-users-bounces@dancer.pm] On Behalf Of Naveed Massjouni Sent: 30 March 2015 07:19 To: Perl Dancer users mailing list Subject: Re: [dancer-users] serializer config Just update your config.yml like so: engines: JSON: convert_blessed: 1 -Naveed Massjouni On Sun, Mar 29, 2015 at 6:18 PM, Zahir Lalani <ZahirLalani@oliver-marketing.com<mailto:ZahirLalani@oliver-marketing.com>> wrote: Hi The only info I can find on serializer configs for JSON in the yaml file, relates to the serializer: JSON. How does one configure the engine to enable allow_blessed from within the central config? Z _______________________________________________ dancer-users mailing list dancer-users@dancer.pm<mailto:dancer-users@dancer.pm> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
For Dancer2, this is the correct syntax: engines: serializer: JSON: allow_blessed: 1 convert_blessed: 1 Regards, Lennart On 30-03-15 12:34, Zahir Lalani wrote:
Same as yesterday
Error while loading /home/systemz/Dev/OMG-API/bin/app.psgi: Engine 'JSON' is not supported.
Z
*From:*dancer-users [mailto:dancer-users-bounces@dancer.pm] *On Behalf Of *Naveed Massjouni *Sent:* 30 March 2015 07:19 *To:* Perl Dancer users mailing list *Subject:* Re: [dancer-users] serializer config
Just update your config.yml like so:
engines:
JSON:
convert_blessed: 1
-Naveed Massjouni
On Sun, Mar 29, 2015 at 6:18 PM, Zahir Lalani <ZahirLalani@oliver-marketing.com <mailto:ZahirLalani@oliver-marketing.com>> wrote:
Hi
The only info I can find on serializer configs for JSON in the yaml file, relates to the serializer: JSON.
How does one configure the engine to enable allow_blessed from within the central config?
Z
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm <mailto:dancer-users@dancer.pm> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
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
Thx Russell I had tried serializer, and then json - but not together!! Works like a charm :) 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
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
On 03/30/2015 04:48 PM, Zahir Lalani wrote:
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.
That's true ... a section about all possible engines would be nice to have. Regards Racke -- Modern Perl, Dancer and eCommerce consulting.
participants (5)
-
Lennart Hengstmengel -
Naveed Massjouni -
Russell Jenkins -
Stefan Hornburg (Racke) -
Zahir Lalani