Repository navigation
Releases
Releases · elm-community/json-extra
2.2.0
Additions:
parseIntandparseFloatfor weird api's that return numbers as stringsdoubleEncodedfor a more generic json as a string in json issues
Fixes:
optionalFielddecodes the field, rather than the surrounding object now.
Other Stuff:
- Code Style conforms to elm-format@exp
- Doc tests!
- Travis integration
2.0.0
Breaking Changes:
- Upgrade for Elm 0.18
- Removed
maybeNullin favor ofJson.Decode.nullable - Removed
lazyin favor ofJson.Decode.lazy - Renamed
applytoandMapand reversed arguments toDecoder a -> Decoder (a -> b) -> Decoder bto make it work nicely with(|>)
Additions:
fromResult : Result String a -> Decoder a- convert aResultto aDecoder, helpful inandThencallbacks following the removal ofJson.Decode.customDecoderJson.Encode.Extra.maybe : (a -> Value) -> Maybe a -> Value- encode aMaybe agiven an encoder fora. Thanks to @hendore for this addition.
Other Stuff:
- Code style conforms to elm-format
1.1.0
Additions:
Json.Decode.Extra.sequence- lets you generate a list ofDecoder aand attempt to apply them to a JSON list. Authored by @cobalamin
1.0.0
Republish (elm-json-extra)[https://github.com/elm-community/elm-json-extra] as json-extra, per elm-community/guidelines#27