io.pedestal.json

added in 0.8.2

Abstraction around JSON parsing and printing.

The functions here are wrappers around the protocol methods of JSONProcessor.

*json-processor*

dynamic

The default JSONProcessor, used when reading or outputting JSON.

The configuration default uses the charred library.

read-json

(read-json reader options)(read-json processor reader options)

Read JSON from a java.io.Reader, with options (as defined by the protocol).

stream-json

(stream-json object stream)(stream-json processor object stream)

Writes JSON to the output stream. Returns the output stream, which will still be open.