Skip to content

Releases: elm-community/json-extra

2.2.0

03 Jun 12:33
Compare
Choose a tag to compare

Additions:

  • parseInt and parseFloat for weird api's that return numbers as strings
  • doubleEncoded 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

01 Nov 00:53
Compare
Choose a tag to compare

Breaking Changes:

  • Upgrade for Elm 0.18
  • Removed maybeNull in favor of Json.Decode.nullable
  • Removed lazy in favor of Json.Decode.lazy
  • Renamed apply to andMap and reversed arguments to Decoder a -> Decoder (a -> b) -> Decoder b to make it work nicely with (|>)

Additions:

  • fromResult : Result String a -> Decoder a - convert a Result to a Decoder, helpful in andThen callbacks following the removal of Json.Decode.customDecoder
  • Json.Encode.Extra.maybe : (a -> Value) -> Maybe a -> Value - encode a Maybe a given an encoder for a. Thanks to @hendore for this addition.

Other Stuff:

  • Code style conforms to elm-format

1.1.0

11 Sep 17:41
Compare
Choose a tag to compare

Additions:

  • Json.Decode.Extra.sequence - lets you generate a list of Decoder a and attempt to apply them to a JSON list. Authored by @cobalamin

1.0.0

08 Jun 01:37
Compare
Choose a tag to compare

Republish (elm-json-extra)[https://github.com/elm-community/elm-json-extra] as json-extra, per elm-community/guidelines#27