(json) -- JSON parser library

Library (json)

This library is compatible with Chicken Scheme json module and provides JSON reader and writer. The library is a thin wrapper of (text json) library.

Function json-read :optional (port (current-input-port))

Reads JSON from given port and returns representing S-expression.

Conversion rules:

JSON array   <-> list
JSON table   <-> vector
JSON boolean <-> boolean
JSON null    <-> symbol `null`

Read and write procedure always use above conversion rules even if *json-map-type* is set to 'alist.

Function json-write json :optional (port (current-output-port))

Writes the given S-expression JSON representing object to given port.