<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
ok thanks all<br>
I 'm going to test<br>
bye<br>
Hugues.<br>
<br>
<div class="moz-cite-prefix">Le 26/01/2015 16:01, Flavio Poletti a
écrit :<br>
</div>
<blockquote
cite="mid:CAM-TR1rhZVzGg36aLiKOgqMzxdtaY1=GdJKvmgBX0-rKgW10iA@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true"
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('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>
_______________________________________________<br>
dancer-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
<a moz-do-not-send="true"
href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users"
target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
dancer-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a>
<a class="moz-txt-link-freetext" href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a>
</pre>
</blockquote>
<br>
</body>
</html>