Skip to content

Instantly share code, notes, and snippets.

@jsl
Last active Dec 12, 2015
Embed
What would you like to do?
clj-yaml deserializes into arbitrary data types
;; 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 >
@jsl

This comment has been minimized.

Copy link
Owner Author

@jsl jsl commented Feb 2, 2013

The library defines encode and decode on Object which causes this behavior: https://github.com/lancepantz/clj-yaml/blob/master/src/clj_yaml/core.clj#L61.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment