the-sett/decode-generic/1.0.0

Json.Decode.Generic

Decodes JSON into a data model that is generic enough to describe any JSON.

For working with any JSON.

type Json
= JString String
| JBool Bool
| JInt Int
| JFloat Float
| JNull
| JObj (Dict String Json)
| JArr (List Json)

A data structure describing the contents of any JSON.

json : Decoder Json

A JSON decoder that works with any JSON, decoding into the generic data model.