Skip to content

Instantly share code, notes, and snippets.

@ajorgensen
Last active December 28, 2015 01:19
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 ajorgensen/7420144 to your computer and use it in GitHub Desktop.
Save ajorgensen/7420144 to your computer and use it in GitHub Desktop.
(defmapfn to-json [json_keys & args]
"Takes keys and values and emit json strings based on those key value pairs. The size of json_keys should be the same
size as args. Usage: (to-json ['foo' 'bar'] ?v1 ?v2 :> ?json)"
  (json/generate-string (zipmap json_keys args)))
=> fieldDeclaration must be the same size as the given values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment