temochka / enclojure / Enclojure.Json

Utilities for converting between JSON and Enclojure values.

Working with JSON strings

decodeFromString : String -> Result Enclojure.Common.Exception (Enclojure.Common.Value io)

Accepts a JSON string. Returns the result of parsing this string as an Enclojure value.

encodeToString : Enclojure.Common.Value io -> String

Accepts an Enclojure value, returns its JSON representation as a string.

Working with JSON values

decodeValue : Json.Decode.Decoder (Enclojure.Common.Value io)

A JSON decoder for Enclojure values.

encodeValue : Enclojure.Common.Value io -> Json.Encode.Value

A JSON encoder for Enclojure values.