title: coldfusion - receiving posted JSON data and parsing it
body: <p>This is the first time I'm writing a cfc that will catch JSON data from an external web server that would be posting information.</p>
  
  <p>I'm working with a new service that can be set to send us, via HTTP POST to a URL I specify, a JSON packet of information regarding failed transactions.</p>
  
  <p>I figured I'd setup a CFC with remote access to capture and deserialize the JSON data into something we could then act on.  However, I can't figure out how to setup the function in the CFC to received the data?  </p>
  
  <p>I set the URL to www.mydomain.com/com/processRemote.cfc?method=catchJSONdata&amp;ReturnFormat=json</p>
  
  <p>To test it, I setup a simple test page that should post session data:</p>
  
  <pre><code>&lt;cfhttp 
    result="result"
    method="post" 
    url="http://www.mydomain.com/com/processRemote.cfc?method=catchJSONdata&amp;ReturnFormat=json"&gt;
  
      &lt;cfhttpparam type="header" name="content-type" value="application/json"/&gt;
      &lt;cfhttpparam type="body" value="#serializeJSON(session)#"/&gt;
  </code></pre>
  
  <p>    </p>
  
  <p>So where I'm lost is what's the cfargument name that I'd have in my cfc that I would initially store the JSON data in?  I have no control over the remote service that would be sending the JSON data.</p>
  
  <p>Thanks,</p>