Open neoeinstein opened 8 years ago
Prefer JsonResult<'a> as the return type for deserialization.
JsonResult<'a>
JsonError
Tag
OtherDeserializationError
JsonError list
Error
formatError : JsonError -> string
JsonResult.toOption
JsonResult.toChoice
Perhaps also a JsonResult.toOption as well, for when you really don't care why it failed, just that it did.
Prefer
JsonResult<'a>
as the return type for deserialization.JsonError
, consisting of all potential JSON deserialization failuresTag
case to allow structured reportingOtherDeserializationError
to allow consumers to extend with their own failuresJsonResult<'a>
to have aJsonError list
in theError
caseJsonResult<'a>
formatError : JsonError -> string
functionJsonResult.toOption
functionJsonResult.toChoice
function