lue-bird/elm-morph/3.0.1

Json

JSON. See also Json.Morph

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

= Array (Array Json)
| Object (List Tagged)

json structure. record/object/dict or array

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

tag-value pair used to represent a field

create

fromValue : Value String -> Json

transform

toValue : Json -> Value String