Elm 0.19 changed the signatures of decodeString and decodeValue.
decodeString:Decoder a -> String -> ResultString a
Parse the given string into a JSON value and then run the Decoder on it.
This will fail if the string is not well-formed JSON or if the Decoder
fails for some reason.
import Json.Decode exposing (int)
decodeString int "4" --> Ok 4
decodeString int "1 + 2" == Err ...
Parse the given string into a JSON value and then run the
Decoderon it. This will fail if the string is not well-formed JSON or if theDecoderfails for some reason.