arnau / elm-objecthash / Objecthash.Json

Helper functions to transform JSON to the Objecthash values.

decode : String -> Result Json.Decode.Error Objecthash.Value.Value

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

decodeWith : Json.Decode.Decoder Objecthash.Value.Value -> String -> Result Json.Decode.Error Objecthash.Value.Value

Decodes a JSON string with the given decoder.

Decoders

dict : Json.Decode.Decoder Objecthash.Value.Value

TODO: Parametrise internal decoder

list : Json.Decode.Decoder Objecthash.Value.Value

TODO: Parametrise internal decoder

bool : Json.Decode.Decoder Objecthash.Value.Value

float : Json.Decode.Decoder Objecthash.Value.Value

int : Json.Decode.Decoder Objecthash.Value.Value

null : Json.Decode.Decoder Objecthash.Value.Value

set : Json.Decode.Decoder Objecthash.Value.Value

TODO: Parametrise internal decoder

string : Json.Decode.Decoder Objecthash.Value.Value