- json-unparsers #!optional unparsersparameter
An alist which maps predicate functions to emitter functions. When a datum is to be written the predicates are tried in order until one returns #t. The datum is passed to the corresponding emitter function which is expected to write its JSON representation to (current-output-port). By default the following mappings apply:
- list?
- object (an alist with symbols for keys is expected)
- vector?
- array
- string?
- string
- number?
- number
- (lambda (x) (eq? x #t))
- "true"
- (lambda (x) (eq? x #f))
- "false"
- (lambda (x) (eq? x 'null))
- "null"