title: Using JSON decode PHP 5.3
body: <p>My web host is running PHP 5.3, but for some reason I cannot use Json_decode(). Why is that? How can I make it work? Are there any alternatives to Json_decode()? </p>
  
  <p>I am using it like this:</p>
  
  <pre><code>$data= json_decode($_POST['moment']);
  var_dump($_POST['moment']);
  foreach($data as $item) {
  echo $item;
  </code></pre>
  
  <p>And it outputs this: 
  string(22) "[\"36\",\"37\",\"38\"]" 
  Warning: Invalid argument supplied for foreach() on line 23</p>
  
  <p>By doing the var_dump() I see the string is created, but I cannot get json_decode to work, to create the array $data</p>
  
  <p>Thanks</p>