[elm-discuss] Re: How decode nested Json Structure

2017-03-03 Thread Євген Петров
I fount mistakes in |> required "data" Decode.list change to required "data" decodeConfigs Thank You, Witold Szczerba My final solution I find in https://gist.github.com/yang-wei/0a1cea1194a244aa9be6 decodeConfigs : Decode.Decoder (List Config) decodeConfigs = Decode.at ["data"] (Decode.

[elm-discuss] How decode nested Json Structure

2017-03-02 Thread Євген Петров
Hello, All I do not understand how to work Json.Decode.Pipeline for nested Json. Json Structure { "count": "null", "data": [ { "configType": "2", "date": "2012-02-07 11:51:29", "desc": "Access Limiter", "id": "26", "term": "ACCESS_LIMITER" }, { "configType": "2", "date": "2012-02-07 11:51:29", "