Skip to content

Instantly share code, notes, and snippets.

@spariev
Created August 27, 2010 07:47
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 spariev/553005 to your computer and use it in GitHub Desktop.
Save spariev/553005 to your computer and use it in GitHub Desktop.
(import '(org.yaml.snakeyaml Yaml))
(defn parse-yaml-str
[^String yaml-str]
(let [y-parser (Yaml.)]
(.load ^org.yaml.snakeyaml.Yaml y-parser
^String (or yaml-str ""))))
;; gives
;; Reflection warning - call to load can't be resolved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment