title: Receive JSON payload with ZEND framework and / or PHP
body: <p>I'm receiving a JSON payload from a webservice at my site's internal webpage at /asset/setjob. The following is the JSON payload being posted to /asset/setjob:</p>
  
  <blockquote>
    <p>[{"job": 
         {"source_filename": "beer-drinking-pig.mpg",
          "current_step": "waiting_for_file",
          "encoding_profile_id": "nil",
          "resolution": "nil",
          "status_url": "<a href="http://example.com/api/v1/jobs/1.json" rel="noreferrer">http://example.com/api/v1/jobs/1.json</a>",
          "id": 1,
          "bitrate": "nil",
          "current_status": "waiting for file",
          "current_progress": "nil",
          "remote_id": "my-own-remote-id"}}]</p>
  </blockquote>
  
  <p>This payload posts one time to this page. The page is not meant for viewing but parsing the JSON object for the id and current_status so that I can insert it into a database. I'm using Zend framework.</p>
  
  <p>HOW DO I receive this payload in Zend? Do I $_GET['json']? $_POST['job']? None of these seem to work. I essentially need to assign this payload to a php variable so that I can then manipulate it.</p>
  
  <p>I've tried:</p>
  
  <blockquote>
    <p>$jsonStrGet = var_dump($_GET);
      $jsonStrPost = var_dump($_POST);</p>
  </blockquote>
  
  <p>And I've tried:
  $response = $this->getResponse();
    $body = $response->getBody();</p>
  
  <blockquote>
    <p>Blockquote</p>
  </blockquote>
  
  <p>Any help would be much appreciated! Thanks.</p>