do to some type of bug in microsoft’s service bus clients must send my servers text/x-json as as application/json causes the servicebus to crash or not respond. So I am looking to configure ServiceStack to treat accept : text/x-json and content-type : text/x-json the same as it would treat them when set to application/json? I looked at ContentTypeFilter.Regiser but it’s not clear which serializer options I need to set.
Share
You can’t change the existing JSON ContentType in ServiceStack but you can register a new ContentType with something like:
Note: this is the same API that the built-in CsvFormat and HtmlFormat use.