JSON decoding a list of objects, just get the keys

Could you try changing versionsDecoder to:

versionsDecoder =
    Decode.list (Decode.keyValuePairs Decode.value)
        |> Decode.map (List.concatMap identity)
        |> Decode.map buildVersions

It feels like it should work.

It’s better to ask this kind of question on slack even though it’s a pretty long question. :slight_smile:
(discourse rules)

2 Likes