title: PHP JSon How to read boolean value received in JSon format and write in string on PHP
body: <p>I receive this JSON string from another site and I cannot modify what received from.  The string is receive in $_POST and is :</p>
  
  <pre><code>[
      {
          "clientId":"17295c59-4373-655a-1141-994aec1779dc",
          "channel":"\/meta\/connect",
          "connectionType":"long-polling",
          "ext":{
              "fm.ack":false,
              "fm.sessionId":"22b0bdcf-4a35-62fc-3764-db4caeece44b"
          },
          "id":"5"
      }
  ]
  </code></pre>
  
  <p>I decode the JSON string with the following code :     </p>
  
  <pre><code>$receive = json_decode(file_get_contents('php://input'));
  </code></pre>
  
  <p>And when I use <code>print_r($receive)</code> I get the following: </p>
  
  <pre><code>Array (
  [0] =&gt; stdClass Object
      (
          [clientId] =&gt; 17295c59-4373-655a-1141-994aec1779dc
          [channel] =&gt; /meta/connect
          [connectionType] =&gt; long-polling
          [ext] =&gt; stdClass Object
              (
                  [fm.ack] =&gt; 
                  [fm.sessionId] =&gt; 22b0bdcf-4a35-62fc-3764-db4caeece44b
              )
  
          [id] =&gt; 5
      )
  )
  </code></pre>
  
  <p>I can access and read all Array / Object with no problem : </p>
  
  <pre><code>$receive[$i]-&gt;clientId;
  $receive[$i]-&gt;channel;
  $connectionType = $receive[$i]-&gt;connectionType;
  $receive[$i]-&gt;id;
  $receive[$i]-&gt;ext-&gt;{'fm.sessionId'};
  </code></pre>
  
  <p>But {fm.ack} is empty</p>
  
  <p>In the decoded JSON string, the false value is not between <code>""</code>.</p>
  
  <p>Is it possible to access and read the false value and convert it into string value instead?</p>
  
  <p>Thank you for your helping !</p>