title: Ruby Grape: How to send array of hashes as param
body: <p>I sends an array of hashes.</p>
  
  <pre><code>[{question_id: 1_id, answer:1_String},{question_id: 2_id, answer:2_String}]
  </code></pre>
  
  <p>and I used this code in my API file:</p>
  
  <pre><code>requires :profile_setting, type: Array[Hash], desc: "[{question_id: 1_id, answer: '1_String'},{question_id: 2_id, answer: '2_String'}]"
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/4UutE.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4UutE.jpg" alt="enter image description here"></a></p>
  
  <p>params: <code>[{question_id: 1_id, answer:1_String},{question_id: 2_id, answer:2_String}]</code></p>
  
  <p>response: </p>
  
  <pre><code>{
    "error": "profile_setting is invalid"
  }
  </code></pre>
  
  <p>how to send a Array of multiple hashes.</p>