title: php json_encode() show's null instead of text
body: <p>I am reading from database with some text in Hebrew and trying to <code>json_encode</code> it.
  if i <code>print_r</code> the results i get:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [value] =&gt; 88
              [text] =&gt; כיתה א'
              [parent_id] =&gt; 1
              [level] =&gt; 1
          )
  
      [1] =&gt; Array
          (
              [value] =&gt; 89
              [text] =&gt; כיתה ב'
              [parent_id] =&gt; 1
              [level] =&gt; 1
          )
  
      [2] =&gt; Array
          (
              [value] =&gt; 91
              [text] =&gt; כיתה ג'
              [parent_id] =&gt; 1
              [level] =&gt; 1
          )
  
  )
  </code></pre>
  
  <p>while the json_encode shows:</p>
  
  <pre><code>[{"value":"88","text":null,"parent_id":"1","level":"1"},{"value":"89","text":null,"parent_id":"1","level":"1"},{"value":"91","text":null,"parent_id":"1","level":"1"}]
  </code></pre>
  
  <p>i belive it's because my text from the database contains a ( ' ) mark.
  tried various combination of stripslashes or real_escape_string none have helped.</p>