title: how can convert json object to array in php?
body: <p>I have this JSON    </p>
  
  <pre><code>[size: null, color: "white"]
  </code></pre>
  
  <p>Which send to the server via post method.</p>
  
  <p>I try </p>
  
  <pre><code>$your_json_string = json_decode($your_json_string, TRUE)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$your_json_string = html_entity_decode($your_json_string);
  $your_json_string = json_decode($your_json_string, true);
  </code></pre>
  
  <ul>
  <li>With <code>print_r($your_json_string);</code> I get: <em>null</em>. </li>
  <li>With <code>echo json_last_error();</code> I get: <em>4</em>.</li>
  </ul>
  
  <p>Any ideas on how I can solve this?</p>