(argus & {:keys [encoders decoders]})
Create an instance of argus that uses specified encoders and decoders for tagged values. Encoders maps from type to either a function taking a single argument (the value) and returning a tagged value or a vector with a tag and a function that takes a single argument (the value) and returns the encoded value.
Decoders maps from a tag to a function taking a single value (the encoded value) and returns the decoded value.
Create an instance of argus that uses specified encoders and decoders for tagged values. Encoders maps from type to either a function taking a single argument (the value) and returning a tagged value or a vector with a tag and a function that takes a single argument (the value) and returns the encoded value. Decoders maps from a tag to a function taking a single value (the encoded value) and returns the decoded value.
(deargus argus o)
Rewrite o as Clojure/Java values according to the decoders in the given argus instance.
Rewrite o as Clojure/Java values according to the decoders in the given argus instance.
(enargus argus o)
Rewrite o as JSON with tagged values according to the encoders in the given argus instance.
Rewrite o as JSON with tagged values according to the encoders in the given argus instance.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close