Skip to content
YAML encoding and decoding for Clojure via SnakeYAML
Clojure
Latest commit 2dc440a Sep 11, 2012 @lancepantz FIX #5: Add a license
Failed to load latest commit information.
src/clj_yaml add support for options on the yaml instance Apr 24, 2012
test/clj_yaml update tests Apr 24, 2012
.gitignore project cleanup Feb 18, 2010
LICENSE FIX #5: Add a license Sep 11, 2012
README.md
epl-v10.html FIX #5: Add a license Sep 11, 2012
project.clj v 0.4.0 Jun 26, 2012

README.md

clj-yaml provides YAML encoding and decoding for Clojure via the SnakeYAML Java library.

Usage

(require '[clj-yaml.core :as yaml])

(yaml/generate-string
  [{:name "John Smith", :age 33}
   {:name "Mary Smith", :age 27}])
"- {name: John Smith, age: 33}\n- {name: Mary Smith, age: 27}\n"

(yaml/parse-string "
- {name: John Smith, age: 33}
- name: Mary Smith
  age: 27
")
=> ({:name "John Smith", :age 33}
    {:name "Mary Smith", :age 27})

Installation

clj-yaml is available as a Maven artifact from Clojars:

:dependencies
  [["clj-yaml" "0.4.0"]
   ...]

Development

$ git clone git://github.com/lancepantz/clj-yaml.git
$ lein deps
$ lein test
$ lein install
Something went wrong with that request. Please try again.