Skip to content

Instantly share code, notes, and snippets.

@MrHus
Created April 12, 2013 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrHus/d3c385433943a7d57f6c to your computer and use it in GitHub Desktop.
Save MrHus/d3c385433943a7d57f6c to your computer and use it in GitHub Desktop.
org.postgresql.jdbc4.Jdbc4Array conversion for Cheshire
(add-encoder org.postgresql.jdbc4.Jdbc4Array
(fn [array jsonGenerator]
(let [sequence (seq (.getArray array))]
(encode-seq sequence jsonGenerator))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment