Find file
Fetching contributors…
Cannot retrieve contributors at this time
87 lines (52 sloc) 2.44 KB

JSON parser/generator to/from Clojure data structures.

Follows the specification on

Releases and Dependency Information

Latest stable release: 0.1.2

Leiningen dependency information:

[org.clojure/data.json "0.1.2"]

Maven dependency information:


Example Usage

(use '[ :only (read-json json-str)])

(json-str {:a [1 2 3], :b "Hello"})
;;=> "{\"a\":[1,2,3],\"b\":\"Hello\"}"

(read-json "{\"a\":[1,2,3],\"b\":\"Hello\"}")
;;=> {:a [1 2 3], :b "Hello"}

Refer to docstrings in the namespace for additional documentation.

Developer Information

Change Log

  • Release 0.1.2 on 2011-10-14
    • Better parsing of hexadecimal character escapes
    • Fix EOF-handling bug
    • Fix reflection warnings DJSON-1
  • Release 0.1.1 on 2011-07-01
    • Ensure that printing to *out* always uses a PrintWriter.
  • Release 0.1.0 on 2011-03-18
    • Initial release.
    • Source-compatible with clojure.contrib.json, except for the name change.

Copyright and License

Copyright (c) Stuart Sierra, 2012. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.