(parse-documents yaml-documents)
The YAML spec allows for multiple documents. This will take a string containing multiple yaml docs and return a vector containing each document
The YAML spec allows for multiple documents. This will take a string containing multiple yaml docs and return a vector containing each document
(parse-string string
&
{:keys [keywords constructor]
:or {keywords *keywordize* constructor *constructor*}})
Parse a yaml input string. If multiple documents are found it will return a vector of documents
When keywords is a true (default), map keys are converted to keywords. When keywords is a function, invokes the function on the map keys.
When a custom :constructor is provided, it's used to construct objects. Should be a 0-arity function that returns a constructor.
Parse a yaml input string. If multiple documents are found it will return a vector of documents When keywords is a true (default), map keys are converted to keywords. When keywords is a function, invokes the function on the map keys. When a custom :constructor is provided, it's used to construct objects. Should be a 0-arity function that returns a constructor.
Custom constructor that will not barf on unknown YAML tags. This constructor will treat YAML objects with unknown tags with the underlying type (i.e. map, sequence, scalar)
Custom constructor that will not barf on unknown YAML tags. This constructor will treat YAML objects with unknown tags with the underlying type (i.e. map, sequence, scalar)
(decode data)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close