API for json.read
(1.1.x branch)
by
Stuart Sierra
Usage:
(ns your-namespace
(:require clojure.contrib.json.read))
Overview
JavaScript Object Notation (JSON) parser
For more information on JSON, see http://www.json.org/
This library parses data in JSON format. This is a fairly strict
implementation of JSON as described at json.org, not a full-fledged
JavaScript parser. JavaScript functions and object constructors
are not supported. Object field names must be quoted strings; they
may not be bare symbols.
If you want to convert map keys from strings to keywords, use
clojure.contrib.walk/keywordize-keys
See also:
JSON Home Page
Public Variables and Functions
*json-keyword-keys*
var
If true, JSON object keys will be converted to keywords
instead of strings. Defaults to false. There are no checks that
the strings form valid keywords.
read-json
function
Usage: (read-json)
(read-json s)
(read-json stream eof-error? eof-value)
Read one JSON record from s, which may be a String or a
java.io.PushbackReader.