Releases: elm-community/json-extra
Releases · elm-community/json-extra
2.2.0
Additions:
parseInt
andparseFloat
for weird api's that return numbers as stringsdoubleEncoded
for a more generic json as a string in json issues
Fixes:
optionalField
decodes 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
maybeNull
in favor ofJson.Decode.nullable
- Removed
lazy
in favor ofJson.Decode.lazy
- Renamed
apply
toandMap
and reversed arguments toDecoder a -> Decoder (a -> b) -> Decoder b
to make it work nicely with(|>)
Additions:
fromResult : Result String a -> Decoder a
- convert aResult
to aDecoder
, helpful inandThen
callbacks following the removal ofJson.Decode.customDecoder
Json.Encode.Extra.maybe : (a -> Value) -> Maybe a -> Value
- encode aMaybe a
given 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 a
and 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