Skip to main content

parse-string

function

cheshire.core/parse-string

(parse-string [string] [string key-fn] [string key-fn array-coerce-fn])
Returns the Clojure object corresponding to the given JSON-encoded string. An optional key-fn argument can be either true (to coerce keys to keywords), false to leave them as strings, or a function to provide custom coercion. The array-coerce-fn is an optional function taking the name of an array field, and returning the collection to be used for array values. If the top-level object is an array, it will be parsed lazily (use `parse-strict' if strict parsing is required for top-level arrays.

No examples yet. Be the first to add one!

Categories