Closed neoeinstein closed 8 years ago
Merged this in via a local pull, etc. Very cool! It'll be in 5.1.0 (#45) very shortly. There's some (currently non-breaking) changes to lens functions in there as well if you're using them - deprecations given though. Thanks for this, it's a very useful and usable change - awesome!
Sometimes there is a need to serialize or deserialize values for types that were not created within the same assembly. Extension methods don't work to add
ToJson
orFromJson
methods to these types. In this PR, I useSystem.DayOfWeek
as the exemplar, but I plan to use it for serializing types from theNodaTime
library. The key change here is to expose theJson -> JsonResult<'a>
and'a -> Json
shaped holes in the read/write functions.Let me know what you think.