api-builder-0.2.0.0: Library for easily building REST API wrappers in Haskell
Network.API.Builder.Decoding
Synopsis
decode :: (FromJSON a, FromJSON e) => ByteString -> Either (APIError e) a Source
Try to parse a value from a JSON ByteString, and if not, try to parse a useful error from the JSON. If we can't do that, complain about a ParseError.
ByteString
ParseError