Skip to content

Instantly share code, notes, and snippets.

@jjl
Created December 25, 2013 16:00
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 jjl/8124490 to your computer and use it in GitHub Desktop.
Save jjl/8124490 to your computer and use it in GitHub Desktop.
How to deal with postgres JSON column types through JDBC
(defn pg-json-to-string [thing]
(.setType thing "java.lang.String") ;; "Pretend you are a string"
(.getValue thing)) ;; Now we can actually get the value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment