Search code examples
jsonelmdecoder

Howto read json from localhost adress in Elm 0.19?


Do you know a good sample of howto read an JSON API from an localhost adress like: localhost:5050

And read the output of the json api it with elm/json and an simple JSON Decoder?

localhost:8000?


Solution

  • The elm guide is good place for starters: https://guide.elm-lang.org/

    For JSON Decoders examples specifically, have a look here: https://guide.elm-lang.org/effects/json.html