Skip to content

clojure/data.json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clojure.data.json

JSON parser/generator to/from Clojure data structures.

Follows the specification on http:https://json.org/

Releases and Dependency Information

Latest stable release: 0.1.2

Leiningen dependency information:

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

Maven dependency information:

<dependency>
  <groupId>org.clojure</groupId>
  <artifactId>data.json</artifactId>
  <version>0.1.2</version>
</dependency>

Example Usage

(use '[clojure.data.json :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 clojure.data.json 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 (http:https://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.