Module

Erl.Data.Jsone.Encode.Combinators

Provides operators for a DSL to construct Json values:

myJson
 = "key1" := value1
 ~> "key2" := value2
 ~> jsonEmptyObject

#(:=)

Operator alias for Erl.Data.Jsone.Encode.Combinators.assoc (non-associative / precedence 7)

Creates a JAssoc entry, representing a key/value pair for an object.

#assoc

assoc :: forall a. EncodeJson a => String -> a -> JAssoc

The named implementation of the (:=) operator.

#(~>)

Operator alias for Erl.Data.Jsone.Encode.Combinators.extend (right-associative / precedence 6)

Extends a Json object with a JAssoc property.

#extend

extend :: forall a. EncodeJson a => JAssoc -> a -> Json

The named implementation of the (~>) operator.

Modules