Fix illegal JSON response #233

Merged
merged 1 commit into from Aug 24, 2012

Projects

None yet

2 participants

@jorbor
Contributor
jorbor commented Aug 24, 2012

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"
}
}

@mythz mythz merged commit c24965f into ServiceStack:master Aug 24, 2012
@mythz
Member
mythz commented Aug 24, 2012

sweet thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment