title: How to parse json of an incoming POST request in Rails?
body: <p>I have the following problem. A web service is sending a JSON POST request to my app and I want to parse it.</p>
  
  <p>I thought I just can access the params with</p>
  
  <pre><code>@var = params[:name_of_the_JSON_fields]
  </code></pre>
  
  <p>but it doesn't work. I see in my Heroku logs, that the request is done and that the parameters are there, but I just can't store them.</p>
  
  <p>Does anyone have an idea?</p>