title: Passing json object as url parameter
body: <pre><code>&lt;?php  
    $jsonData = array(
      "comments" =&gt; "Fresh food",
      "container" =&gt; false,
      "cookedTime" =&gt; 2,
      "description" =&gt; "biryani",
      "refridgeration" =&gt; true,
      "serves" =&gt; 2,
      "veg" =&gt; true
  );
  
  json_encode($jsonData);
  header("Location:Post.php?json=$jsonData");
  ?&gt;
  </code></pre>
  
  <p>This is my php page which contains json object. I am passing this json object into another page Post.php.</p>
  
  <pre><code>&lt;?php
  $jsonData = $_GET['json'];
  json_decode($jsonData, TRUE);
  echo var_dump($jsonData);
  ?&gt;
  </code></pre>
  
  <p>when I did a dump the result is  C:\wamp\www\Hack\Post.php:16:string 'Array' (length=5).
  It is printing "Array" instead of the json object. What do I do?</p>