chickadee » json » json-write

json-write OBJECT #!optional PORTprocedure

Writes the Scheme data object OBJECT in JSON format to PORT which defaults to the value of (current-output-port). Scheme data is mapped to JSON format in the following way:

SchemeJSON
Hash-tableStructure
VectorStructure (assuming vector consists of (SYMBOL . DATA) pairs
ListArray
NumberNumber
VoidNull
String or symbolString