Module
Data.Argonaut.Encode.Combinators
- Package
- purescript-argonaut-codecs
- Repository
- purescript-contrib/purescript-argonaut-codecs
Provides operators for a DSL to construct Json
values:
myJson
= "key1" := value1
~> "key2" := value2
~> jsonEmptyObject
#(:=) Source
Operator alias for Data.Argonaut.Encode.Combinators.assoc (non-associative / precedence 7)
Creates a JAssoc
entry, representing a key/value pair for an object.
#assoc Source
assoc :: forall a. EncodeJson a => String -> a -> JAssoc
The named implementation of the (:=)
operator.