This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
An alternative Json API
version 1.0.0
license BSD3
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 1.0.0
Committed At 2017-03-02 22:48:24 UTC
elm-lang/html 2.0.0 <= v < 3.0.0 2.0.0
elm-lang/core 5.1.1 <= v < 6.0.0 5.1.1

Modules

README

elm-alternative-json

An alternative to core's JSON decoder! This package is mostly intended as a talking/starting point.

decodeModel : Json.Value -> Result String Model
decodeModel value =
  Ok { name = "", age = 0 } 
    |> decodeField "age" Json.int setAge value
    |> decodeField "name" Json.string setName value