json_write/2
Description
json_write/2
is a predicate that writes a Prolog term as a JSON to a stream.
The JSON object is of the same format as produced by json_read/2.
The signature is as follows:
json_write(+Stream, +Term) is det
Where:
- Stream is the output stream to which the JSON is written.
- Term is the Prolog term that represents the JSON structure.