NancyFx/Nancy — pull request #1071 by jchannon (2013-04-18 21:09:57+00:00)
Title: Body populated with error when XML/JSON serialization takes place

I had a cyclical POCO reference that was marked with XmlIgnore attributes and when a request came in and I used application/xml this returned my data however when using application/json I got a blank response.

This puts a try/catch around the call to Serialize and writes the exception message to the stream.