title: Is it possible to send a json array via post?
body: <p>Im trying to send a json array to a php post request.</p>
  
  <pre><code>$myarray[] = 500;
  $myarray[] = "hello world";
  </code></pre>
  
  <p>how can I send $myarray json data to a php post request?</p>
  
  <p>Here's what I tried:</p>
  
  <pre><code>&lt;form name="input" action="post.php"&gt;
  &lt;input type="hidden" name="json" value="[500,'hello world']" /&gt;
  &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Im testing the API and was told it only takes json data...but I can't seem to get it to work. My guess is Im sending the json data wrong. Any thoughts?</p>