24

If I use Newtonsoft.Json.NET it defaults to iso8601 (i.e.: 2011-06-02T09:34:29+02:00) for serializing/deserializing dates.

Why ServiceStack.Text doesn't default to this and I need to specify it as a configuration setting?

knocte
  • 16,941
  • 11
  • 79
  • 125

1 Answers1

35

ServiceStack followed the .NET DataContractSerializer defaults, not JSON.NET. We are reluctant to make breaking changes like this, especially when there's an easy way to configure it otherwise with:

JsConfig.DateHandler = DateHandler.ISO8601; 
dbc
  • 104,963
  • 20
  • 228
  • 340
mythz
  • 141,670
  • 29
  • 246
  • 390