<div dir="ltr"><div><div>Expanding on Andrew's answer, the JSON module is used, this is what you can find in its documentation:<br><br>[...] references to the integers <code>0</code> and <code>1</code>, which get turned into <code>false</code> and <code>true</code> atoms in JSON. You can also use <code>JSON::false</code> and <code>JSON::true</code> to improve readability.<br><br></div>Ciao,<br><br></div>    Flavio.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-26 12:22 GMT+01:00 Hugues <span dir="ltr"><<a href="mailto:hugues@max4mail.com" target="_blank">hugues@max4mail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello<br>
use dancer 1.3132<br>
I need to retun a json to my AngulasJS app come from my MySQL database<br>
but my json return "false" instead of false and "true" instead of true<br>
or 0/1 instead of true/false<br>
<br>
my @todo   = database()->quick_select('<u></u>ToDo',{ userId => $userId },{limit => 50} );<br>
return \@todo;<br>
<br>
I try binay fields, varchar fields, bool fields ( return 0/1), tinyint( 0/1)<br>
<br>
do you have a idea ? or I need to parse @todo and change by myself ?<br>
<br>
<br>
<br>
[<br>
   {<br>
      "Completed" : "false",<br>
      "Id" : "11",<br>
      "UserId" : "1",<br>
      "Tache" : "my 1st task"<br>
   },<br>
   {<br>
      "Completed" : "true",<br>
      "Id" : "12",<br>
      "UserId" : "1",<br>
      "Tache" : "aller chercher le chien"<br>
   },<br>
 ]<br>
<br>
<br>
______________________________<u></u>_________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/<u></u>mailman/listinfo/dancer-users</a><br>
</blockquote></div><br></div>