yesodweb/yesod — pull request #511 by jackhftang (2013-03-06 18:44:28+00:00)
Title: Added maybeJsonBody to Yesod.Json

In the original implementation of parseJsonBody, the sinkParser will throw ParseError and close the connection upon parse failure leaving no chance for system admin to handle failure respond. Just like many parser, maybeJsonBody return Nothing when fail and Just value when success.