[Dancer-users] How to un-prettify JSON?

Alastair Sherringham sherringham at gmail.com
Sun Mar 13 10:29:22 CET 2011


Hello,

I just upgraded from Dancer 1.2 to latest (1.3XX) and my JSON output
changed from un-pretty to pretty.

set serializer  => 'JSON';
get '/products' => sub {
    return db_products();
};

I see the option in the docs but cannot figure out how to use it. In
"config.yml", I tried :

engines:
  JSON:
    pretty: 0

But that makes no difference. How do I turn off "pretty"?

Cheers,


-- 
Alastair Sherringham
http://www.sherringham.net


More information about the Dancer-users mailing list