title: How can I return an array of elements, instead of a single one, in a Rails JSON API?
body: <p>I have this line of code</p>
  
  <pre><code>render json: { message: t(:incorrect_password) }, status: :unauthorized
  </code></pre>
  
  <p>which results in this response...</p>
  
  <pre><code>{
      "message": "Please re-enter your password. The password entered is incorrect."
  } 
  </code></pre>
  
  <p>but I want the response to look like this...</p>
  
  <pre><code>{
      "message": [
          "Please re-enter your password. The password entered is incorrect."
      ]
  } 
  </code></pre>
  
  <p>What is the proper way to achieve this, returning the result as the element of an array, instead of as a single entity?</p>