title: How to handle a JSON service that responds with a boolean value?
body: <p>I want my JSON service to return a boolean value. I know that returning only <code>true</code> or <code>false</code> is invalid JSON, so what is the best way to do this? I've thought of these options:</p>
  
  <pre><code>[true]
  </code></pre>
  
  <p>Or:</p>
  
  <pre><code>{ "response": true }
  </code></pre>
  
  <p>I prefer the latter one. Are there any best-practices for this?</p>