ServiceStack/ServiceStack — pull request #233 by jorbor (2012-08-24 17:33:38+00:00)
Title: Fix illegal JSON response

When exception is thrown and DebugMode = false, ResponseStatus contains a trailing comma.

e.g.,
http://myhost/something-that-throw-sexception?format=json

Previous response:

{
"ResponseStatus":{
"ErrorCode":"some code",
"Message":"some message",
}
}

Fixed response:

{
"ResponseStatus":{
"ErrorCode":"some code",
"Message":"some message"
}
}