lue-bird/elm-morph/2.1.0

NOTE: the latest version is 3.0.1

Json

JSON. See also Json.Morph

type alias Json tag =

A valid JSON value. caseable. Elm doesn't crash on ==. Can't contain any spooky impure stuff

type Atom
= Null ()
| Bool Bool
| Number Decimal
| String String

json atom. null/bool/number or string

type Composed tag
= Array (Array (Json tag))
| Object (List (Tagged tag))

json structure. record/object/dict or array

type alias Tagged tag =
RecordWithoutConstructorFunction
{ tag : tag
, value : Json tag
}

tag-value pair used to represent a field

tagMap : (tag -> tagMapped) -> Json tag -> Json tagMapped

Reduce the amount of tag information. Used to make its representation compact or descriptive