Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
java.sql.Timestamp - clojure.data.json
(require '[clojure.data.json :refer [write JSONWriter]])
(defn write-timestamp [x out]
(write (str x) out))
(extend java.sql.Timestamp JSONWriter {:-write write-timestamp})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment