Reads JSON from the stream stream, which must be a character
input stream.
max-nest
is the maximum nesting of objects and arrays
allowed. It defaults to *json-max-nest*
. When this nesting level
is exceeded a json-parse-error
is signaled.
The interactive-p parameter defaults to (stream-interactive-p
stream)
.
If interactive-p is NIL
, the stream is assumed to be
non-interactive. It is then assumed and checked, that the stream
contains exactly one JSON object followed by optional whitespace
and end-of-file.
If interactive-p is non-NIL
, the stream is assumed to be
interactive. Then reading stops after one JSON element is
parsed. The input directly following the JSON element is left for
further reading. White space is preserved.