API for json.read - clojure-contrib v1.1 (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.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
This library, clojure-contrib, is deprecated. See here for more information.

  
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
This library, clojure-contrib, is deprecated. See here for more information.
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.