use (|:) from Json.Decode.Extra
http://package.elm-lang.org/packages/elm-community/json-extra/1.0.0/Json-Decode-Extra#|
:


On Mon, Aug 1, 2016 at 3:21 PM, Petr Huřťák <[email protected]> wrote:

> For 8 fields or less I can do
>
> import Json.Decode as Decode exposing ((:=))
>
> collectionDecoder : Decode.Decoder (List Test)
> collectionDecoder =
>     Decode.list
>         (Decode.object8 Test
>             ("id" := Decode.int)
>             ...
>         )
>
>
> How to decode JSON object with more than 8 fields?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
There is NO FATE, we are the creators.
blog: http://damoc.ro/

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to