Last active
December 12, 2015 02:29
-
-
Save jsl/4699323 to your computer and use it in GitHub Desktop.
clj-yaml deserializes into arbitrary data types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Clojure library clj-yaml deserializes into arbitrary Java classes | |
user=> (require '[clj-yaml.core :as yaml]) | |
nil | |
user=> (yaml/parse-string "!!java.io.File") | |
#<File > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The library defines
encode
anddecode
on Object which causes this behavior: https://github.com/lancepantz/clj-yaml/blob/master/src/clj_yaml/core.clj#L61.