JSON decode unknown number of fields

Thank you, stephenreddek, for your clear answer. I try to make it work using Json.Decode.keyValuePairs, but that raises a question: are you sure about the pipeline with Json.Decode.map ((key, value) -> value)? Elm doesn’t accept it:

The argument is:

    Decoder (List ( String, String ))

But (|>) is piping it to a function that expects:

    Decoder ( a, value )

I could keep the list of key-value pairs and map them into values only later using List.map. What do you suggest?