API for json - clojure-contrib v1.2 (stable)

by Stuart Sierra

clojure-contrib is now deprecated

clojure-contrib is no longer being developed or maintained.

Rather than a single, monolithic, contributions library, Clojure now has a set of separate libraries for each unit of functionality. The libraries are in the Clojure GitHub organization at https://github.com/clojure. API documentation of the libraries can be found at https://clojure.github.io.

If you're looking for a specific function or namespace from the old clojure-contrib, see "Where Did Clojure.Contrib Go".


Full namespace name: clojure.contrib.json

Overview

JavaScript Object Notation (JSON) parser/writer.
See http://www.json.org/
To write JSON, use json-str, write-json, or write-json.
To read JSON, use read-json.

Public Variables and Functions



json-str

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (json-str x)
Converts x to a JSON-formatted string.
Source


pprint-json

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (pprint-json x)
Pretty-prints JSON representation of x to *out*
Source


print-json

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (print-json x)
Write JSON-formatted output to *out*
Source


read-json

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (read-json input)
       (read-json input keywordize?)
       (read-json input keywordize? eof-error? eof-value)
Reads one JSON value from input String or Reader.
If keywordize? is true (default), object keys will be converted to
keywords.  If eof-error? is true (default), empty input will throw
an EOFException; if false EOF will return eof-value. 
Source


read-json-from

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (read-json-from input keywordize? eof-error? eof-value)
Reads one JSON value from input String or Reader.
If keywordize? is true, object keys will be converted to keywords.
If eof-error? is true, empty input will throw an EOFException; if
false EOF will return eof-value. 


write-json

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (write-json object out)
Print object to PrintWriter out as JSON
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.