title: Grape POST request receiving JSON
body: <p>I am having problem with grape.
  I have tried to look into their docs and google around.
  I could not find any solution or sample regarding this.</p>
  
  <p>Let say I am sending this kind of format to the POST request of grape:</p>
  
  <pre><code> {
      "preferences": {
          "play": {
              "weekdays": "5",
              "weekend": "8"
          },
          "grow": {
              "weekdays": "4",
              "weekend": "8"
          }
      }
  }
  </code></pre>
  
  <p>Questions:</p>
  
  <ol>
  <li>How do I setup the Grape params to receive this post?
  I have tried something like this:</li>
  </ol>
  
  <blockquote>
  <pre><code>  params do
      optional :preferences, type: Hash  do
        optional :play do
          optional :weekdays
          optional :weekend
        end
        optional :grow, type: Hash do
          optional :weekdays
          optional :weekend
        end
      end
    end
  </code></pre>
  </blockquote>
  
  <ol start="2">
  <li>I am using postman to do the POST on my chrome. My question is, How do I set the Hash kind of params ? There are 3 options on postman which are form-data, form-urlencoded, and raw. I have tried with form-data and raw (json) it does not work for the raw json, it gave me an error saying that 
  <strong>The requested content-type 'text/plain' is not supported</strong></li>
  </ol>
  
  <p>Any idea how do I fix these problems?</p>
  
  <p>Thank you very much</p>