arnau/elm-objecthash/1.2.0

NOTE: this package is not compatible with Elm 0.19.1

Objecthash.Json

Helper functions to transform JSON to the Objecthash values.

decode : String -> Result String Value

Expects a JSON string and returns the result of attempting to decode it into an AST of Objecthash.Value.

decodeWith : Decoder Value -> String -> Result String Value

Decodes a JSON string with the given decoder.

Decoders

dict : Decoder Value

TODO: Parametrise internal decoder

list : Decoder Value

TODO: Parametrise internal decoder

bool : Decoder Value
float : Decoder Value
int : Decoder Value
null : Decoder Value
set : Decoder Value

TODO: Parametrise internal decoder

string : Decoder Value