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.