Skip to main content
100%

Failed with expected a LIST ; where value is "[xxxxx]"

✓ Published0🌍 Public
NNikhilkuyya
Last edited Sep 6, 2018
Created on Sep 6, 2018

This example demonstrates a JSON-decoding failure in an Elm application that renders resume content. The visualization shows how the Elm runtime reports an error when JavaScript sends data that does not match the expected decoder structure. The code uses the Elm `Decode` library with a `Decode.list` decoder for the resume sections, and `Decode.string` for each required field. The JavaScript side employs `Elm.Main.init` and a port named `onFetchingData` to pass a JSON stringified array with heading, class, and data properties, but the decoder expects a LIST and fails with the message "Failed with expected a LIST ; where value is '[xxxxx]'".

AI-generated description

Similar vizzes