title: Mysql / PHP / json_encode boolean string conversion
body: <p>I have a mysql query lets say:</p>
  <p><code>SELECT cca_id AS id, cca_title AS text,IF((SELECT count(*) from crm_categories WHERE cca_id_prev = id),'TRUE','FALSE') AS children FROM crm_categories WHERE...</code></p>
  <p>now I get an array back with true / false as a string</p>
  <p>If I use json_encode the result is like <code>{&quot;id&quot;:&quot;false&quot;}</code></p>
  <p>But I need true/false without quotes - the problem is if i use true false in the mysql query as a boolean it returns 0/1 - but I don't want that either...</p>
  <p>Of course I can run a <code>str_replace</code> to the json string - but i think there are alternatives isn't it?</p>