Json.Decode
exposes two functions to decode a payload, first one is decodeValue
which tries to decode a Json.Encode.Value
, the second one is decodeString
which tries to decode a JSON string. Both function take 2 parameters, a decoder and a Json.Encode.Value
or Json string.