Created
October 1, 2018 05:05
-
-
Save ruseel/bcd7ec7c31ef101d68112ea2a1b2709f to your computer and use it in GitHub Desktop.
java.sql.Timestamp - clojure.data.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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