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.write-api.html | 140 ---------------------------------------------------- 1 file changed, 140 deletions(-) delete mode 100644 json.write-api.html (limited to 'json.write-api.html') diff --git a/json.write-api.html b/json.write-api.html deleted file mode 100644 index 33f89180..00000000 --- a/json.write-api.html +++ /dev/null @@ -1,140 +0,0 @@ - - - json.write API reference (clojure-contrib) - - - - - - - - - - - - - -
- - -
-
-
-
- -

API for json.write

-by Stuart Sierra
-
Usage: -
-(ns your-namespace
-  (:require clojure.contrib.json.write))
-
-

Overview

-
JavaScript Object Notation (JSON) generator.
-
-This library will generate JSON from the following types:
- * nil
- * all primitives (Boolean, Byte, Short, Integer, Long, Float, Double)
- * String (actually any CharSequence)
- * java.util.Map (including Clojure maps)
- * java.util.Collection (including Clojure vectors, lists, and sets)
- * Java arrays
-
-You can extend this library to handle new types by adding methods to
-print-json.
-
-This library does NOT attempt to preserve round-trip equality between
-JSON and Clojure data types. That is, if you write a JSON string with
-this library, then read it back with clojure.contrib.json.read, you
-won't necessarily get the exact same data structure.  For example,
-Clojure sets are written as JSON arrays, which will be read back as
-Clojure vectors.
-
-If you want indented output, try the clojure-json library at
-http://github.com/danlarkin/clojure-json
-
-This implementation attempts to follow the description of JSON at
-<http://json.org/>.  Maps become JSON objects, all other collections
-become JSON arrays.  JSON object keys are always converted to strings.
-Within strings, all non-ASCII characters are hexadecimal escaped.
-See also: - - JSON Home Page -
-

-

Public Variables and Functions

-
-
-
-

json-str

- function
-
Usage: (json-str x)
-
-
Converts x to a JSON-formatted string.
- Source -
-
-
-

print-json

- multimethod
-
Usage: (print-json x)
-
-
Prints x as JSON.  Nil becomes JSON null.  Keywords become
-strings, without the leading colon.  Maps become JSON objects, all
-other collection types become JSON arrays.  Java arrays become JSON
-arrays.  Unicode characters in strings are escaped as \uXXXX.
-Numbers print as with pr.
- 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