title: Pushing data to a JSON generated with json_encode
body: <p>In the following lines everything works if I don't try to push something to $dataJson.</p>
  
  <pre><code>    $reponse = $bdd-&gt;query("SELECT Comp_Name,Comp_Email 
          FROM Company");
  
      while ($donnees = $reponse-&gt;fetchAll(PDO::FETCH_ASSOC)) {
          $dataJson = json_encode($donnees);
          $dataJson.push({Col1:'Company Name',Col2:'Email'});
          echo $dataJson;
      };
  </code></pre>
  
  <p>I want to add a last object to the array of object generated by json_encode.</p>
  
  <p>I may be missing something easy since every tips I found on internet failed to solve my issue.</p>
  
  <p>Thanks</p>