Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (13 sloc) 0.599 kB
(ns cheshire.factory
"Factories used for JSON/SMILE generation, used by both the core and
custom generators."
(:import ( SmileFactory)
(org.codehaus.jackson JsonFactory JsonParser$Feature)))
;; Factory objects that are needed to do the encoding and decoding
(def ^{:tag JsonFactory} factory
(doto (JsonFactory.)
(.configure JsonParser$Feature/ALLOW_UNQUOTED_CONTROL_CHARS true)))
(def ^{:tag SmileFactory} smile-factory
;; default date format used to JSON-encode Date objects
(def default-date-format "yyyy-MM-dd'T'HH:mm:ss'Z'")
Jump to Line
Something went wrong with that request. Please try again.