concept object in category elm

appears as: objects, n object, Object, object
Elm in Action

This is an excerpt from Manning's book Elm in Action.

Elm’s most basic collections are lists, records, and tuples. Each has varying degrees of similarity to JavaScript’s arrays and objects, but one way in which they differ from JavaScript collections is that Elm collections are always immutable.

You’ve now seen how to decode primitives like Booleans, integers, and strings from JSON into their Elm counterparts. This is a good start, but JSON also supports arrays and objects, and we’ll need to decode both of these types in order to receive our list of photos with metadata.

  • The Json.Decode.Pipeline module offers functions to decode objects in pipeline style.