API for json.read - clojure-contrib v1.1 (stable)

by Stuart Sierra

Full namespace name: 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.
Source


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.
Source
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.