title: JSON String format
body: <p>I'm saving JSON string (using javascript's JSON.stringify) via Ajax call to a php script that write this string into a file i.e.</p>
  
  <pre><code>&lt;?php
  
      $msg = $_GET['hecdata'];
  
      if (strlen($msg) &gt; 0)
      {
          $file = fopen("hecdata.txt","w");
          fwrite($file,$msg);
          fclose($file);
  
          echo "True";        
      }
      else
      {
          echo "False";               
      }
  
  ?&gt;
  </code></pre>
  
  <p>but the problem is the format of JSON become:</p>
  
  <p><code>
  [{\"customerName\":\"Customer 1\",\"contactNumber\":\"03001234567\",\"hallName\":\"4\",\"bookingDate\":\"09/30/2013\"}]
  </code></p>
  
  <p>which is not correct, I am new to php, is this how we should save a json string into a text file?</p>