From 78b132edfc56eff93162e9cd264396528dc6df2d Mon Sep 17 00:00:00 2001 From: Tom Faulhaber Date: Fri, 19 Feb 2010 11:26:52 -0800 Subject: Document the latest branches, et al., in clojure-contrib. Supporting docs currently missing. --- json-api.html | 143 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 json-api.html (limited to 'json-api.html') diff --git a/json-api.html b/json-api.html new file mode 100644 index 00000000..365da64a --- /dev/null +++ b/json-api.html @@ -0,0 +1,143 @@ + + + json API reference (clojure-contrib) + + + + + + + + + + + + + +
+ + +
+
+
+
+ +

API for json + (master branch)

+by Stuart Sierra
+
Usage: +
+(ns your-namespace
+  (:require 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
+
Usage: (json-str x)
+
+
Converts x to a JSON-formatted string.
+ Source +
+
+
+

pprint-json

+ function
+
Usage: (pprint-json x)
+
+
Pretty-prints JSON representation of x to *out*
+ Source +
+
+
+

print-json

+ function
+
Usage: (print-json x)
+
+
Write JSON-formatted output to *out*
+ Source +
+
+
+

read-json

+ function
+
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 +
+ + +
+
+
+
+
+ +
+
Logo & site design by Tom Hickey.
+ Clojure auto-documentation system by Tom Faulhaber.
+
+ + + + \ No newline at end of file -- cgit v1.2.3-70-g09d2