This is the st-json Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 07:46:37 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
st-json
JSON in- and output
Marijn Haverbeke <marijnh@gmail.com>
BSD
st-json.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
st-json/st-json.lisp
st-json
(system).
*allow-comments*
(special variable).
*decode-objects-as*
(special variable).
*output-literal-unicode*
(special variable).
*script-tag-hack*
(special variable).
as-json-bool
(function).
from-json-bool
(function).
getjso
(function).
(setf getjso)
(function).
getjso*
(macro).
jso
(function).
jso
(structure).
json-bool
(type).
json-eof-error
(condition).
json-error
(condition).
json-null
(type).
json-parse-error
(condition).
json-type-error
(condition).
mapjso
(function).
read-json
(generic function).
read-json-as-type
(function).
read-json-from-string
(function).
write-json
(function).
write-json-element
(generic function).
write-json-to-string
(function).
*optimize*
(special variable).
*reading-slot-name*
(special variable).
at-eof
(function).
copy-jso
(function).
ends-atom
(function).
gather-comma-separated
(function).
is-whitespace
(function).
jso-alist
(reader).
(setf jso-alist)
(writer).
jso-p
(function).
json-write-error
(condition).
looks-like-a-number
(function).
make-jso
(function).
raise
(function).
read-json-atom
(function).
read-json-element
(function).
read-json-list
(function).
read-json-object
(function).
read-json-string
(function).
skip-cpp-comment
(function).
skip-whitespace
(function).
Packages are listed by definition order.
st-json
common-lisp
.
*allow-comments*
(special variable).
*decode-objects-as*
(special variable).
*output-literal-unicode*
(special variable).
*script-tag-hack*
(special variable).
as-json-bool
(function).
from-json-bool
(function).
getjso
(function).
(setf getjso)
(function).
getjso*
(macro).
jso
(function).
jso
(structure).
json-bool
(type).
json-eof-error
(condition).
json-error
(condition).
json-null
(type).
json-parse-error
(condition).
json-type-error
(condition).
mapjso
(function).
read-json
(generic function).
read-json-as-type
(function).
read-json-from-string
(function).
write-json
(function).
write-json-element
(generic function).
write-json-to-string
(function).
*optimize*
(special variable).
*reading-slot-name*
(special variable).
at-eof
(function).
copy-jso
(function).
ends-atom
(function).
gather-comma-separated
(function).
is-whitespace
(function).
jso-alist
(reader).
(setf jso-alist)
(writer).
jso-p
(function).
json-write-error
(condition).
looks-like-a-number
(function).
make-jso
(function).
raise
(function).
read-json-atom
(function).
read-json-element
(function).
read-json-list
(function).
read-json-object
(function).
read-json-string
(function).
skip-cpp-comment
(function).
skip-whitespace
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Non-nil means ignore comments when parsing.
Valid values: :jso :hashtable
Controls how js objects should be decoded. :jso means decode to internal struct which
can be processed by getjso, mapjso etc. :hashtable means decode as hash tables.
Bind this to T in order to reduce the use of uXXXX Unicode escapes, by emitting literal characters (encoded in UTF-8). This may help reduce the parsing effort for any recipients of the JSON output, if they can already read UTF-8, or else, they’ll need to implement complex unicode (eg UTF-16 surrogate pairs) escape parsers.
Bind this to T when writing JSON that will be written to an HTML document. It prevents ’</script>’ from occurring in strings by escaping any slash following a ’<’ character.
Convert a generalised boolean to a :true/:false keyword.
Convert :true or :false to its boolean equivalent.
Fetch a value from a JS object. Returns a second value like gethash.
Store a value in a JS object.
Create a JS object. Arguments should be alternating labels and values.
Iterate over the key/value pairs in a JS object.
Read a JSON value and assert the result to be of a given type. Raises a json-type-error when the type is wrong.
Write a value’s JSON representation to a stream.
Write a value’s JSON representation to a string.
Read a JSON-encoded value from a stream or a string.
Method used for writing values of a specific type. You can specialise this for your own types.
list
) stream) ¶hash-table
) stream) ¶real
) stream) ¶integer
) stream) ¶string
) stream) ¶symbol
) stream) ¶simple-error
.
structure-object
.
Jump to: | (
A C E F G I J L M R S W |
---|
Jump to: | (
A C E F G I J L M R S W |
---|
Jump to: | *
A S |
---|
Jump to: | *
A S |
---|
Jump to: | C F J P S T |
---|
Jump to: | C F J P S T |
---|