Skip to content

Instantly share code, notes, and snippets.

@mitchelkuijpers
Created June 1, 2015 19:33
Show Gist options
  • Save mitchelkuijpers/e0453d2e183d82be25cc to your computer and use it in GitHub Desktop.
Save mitchelkuijpers/e0453d2e183d82be25cc to your computer and use it in GitHub Desktop.
(defn safe-keyword [str]
(if (.contains str " ") str (keyword str)))
(cheshire.core/parse-string "{\"with space\": \"blue\"}" safe-keyword)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment