JSON in Clojure
Pull request Compare This branch is 94 commits behind clojure:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


clojure.data.json : JavaScript Object Notation (JSON) parser/generator for Clojure

Copyright (c) Stuart Sierra, 2011. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) 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.

Adding clojure.data.json to Your Project

clojure.data.json is available in the Maven central repositories. Add it to your Maven project's pom.xml as:


or your Leiningen project.clj as:

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

Then load it in a Clojure namespace as:

(ns your.project.namespace
  (:use [clojure.data.json :only (json-str write-json read-json)]))

Comparison to clojure.contrib.json

This project is the continuation of clojure.contrib.json. Versions 0.1.x are source-compatible with clojure.contrib.json, except for the name change.

Downloading and Building from Source



  • Download the source: git clone git://github.com/clojure/data.json.git
  • Enter the directory: cd data.json
  • Compile, test, and install locally: mvn install

Change Log

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.