title: Override default JSON parsing for POST request in Play Framework
body: <p>I do use the great advantage of <code>overriding</code> the <code>onError</code> method in <code>Global.java</code> to control all exception handling in my Play application. Now, when I do a <code>POST reques</code>t to my <code>API</code> defining its <code>Content-Type</code> as <code>application/json</code> and using a <code>malformatted JSON array</code>, I'll get a <code>Bad Request For request 'POST /api/something' [Invalid Json]</code> on the client side but can't override this by my own <code>onError</code> function as it obviously does not provoke a <code>JsonParsingException</code> or alike.</p>
  
  <p>Does anybody know how I can replace the HTML Bad request page by, let's say my own <code>JSON</code> array with an error message? That would help me a lot!</p>
  
  <p>Thanks in advance, Steven</p>